I’m creating a form that uses a ListView. Each row in my ListView is defined by form_item.xml:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<TextView android:id="@+id/textFormItem"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:textSize="16sp"
android:ellipsize="end" android:singleLine="true" />
<EditText android:id="@+id/editFormItem"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:scrollHorizontally="true" />
</LinearLayout>
I’m planning to stick this layout into a custom Adapter that subclasses SimpleAdapter. But I’m wondering how will I be able to access each EditText and get a reference to it.
1 Answer