Settings Person Form

personform.xml

<TextView android:id="@+id/labelFirstName"

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:text="First Name"/>

<EditText android:id="@+id/entryFirstName"

android:layout_width="fill_parent"

android:layout_height="wrap_content"

android:background="@android:drawable/ editbox_background"

PersonFormActivity.java_

if (event.getIdO==R.id.btnReportFormSubmit) {

String firstname = ((TextView)findViewById(R.id.entryFirstName)).getText().toString(); String lastname = ((TextView)findViewById(R.id.entryLastName)).getText().toString(); String email = ((TextView)findViewById(R.id.entryEmail)).getText().toString(); String submitUrl = ((TextView)findViewById(R.id.entrySubmitUrl)).getText().toString();

String displayUrl = ((TextView)findViewById(R.id.entryViewUrl)).getText().toString(); }

Was this article helpful?

0 0

Post a comment