EditText と TextView を使用して項目にデータを入力するカスタム アダプターを備えた ListView があります。
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<EditText
android:id="@+id/et_choice_prob"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:inputType="numberSigned"/>
<TextView
android:id="@+id/tv_choice_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/et_choice_prob"
android:layout_alignBaseline="@id/et_choice_prob"
android:layout_marginLeft="5dip"
/>
</RelativeLayout>
OnItemClickListenerEditText がフォーカスを盗むため、設定したい場合は呼び出されません。
別のスレッドで、TextView を実際に編集する機能が削除される に設定focusableする必要があるとのことでした。false
descendantFocusabilityまた、ListViewを利用可能なオプションに設定しようとしましたが、成功しませんでした。
アダプターは特別なことは何もしていませんが、リクエストに応じてソースを提供します。他のすべては、別の方法で同じ方法で行われ、ListFragment機能します。