There was an error while loading. Please reload this page.
An Android activity XML would contain following view decelaration:
<EditText android:id="@+id/userUnique" android:layout_width="wrap_content" android:layout_height="wrap_content" android:ems="10" android:padding="20sp" android:inputType="text" /> <Button android:id="@+id/loginOk" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/ok" android:layout_below="@id/password" android:padding="20sp" />
In order to map the layout with the Java source we would be writing following code everytime:
private EditText userUnique; private Button loginOk; userUnique = (EditText) findViewById(R.id.userUnique); loginOk = (Button) findViewById(R.id.loginOk); loginOkListener = new OnClickListener(){ @Override public void onClick(View v) { /* Write your code here */ } }; loginOk.setOnClickListener(loginOkListener);
This project aimed to generate the mapping source of xml.