私は各アイテムの背景状態(XML)描画可能なListviewを持っています。 このDrawableの上にTextViewがあります。テキストビュー上のクリックは、下に描画可能なものには転送されません
テキストビューを押すと、それに応じて状態ドロワブルを変更します。
しかし、それは起こりません。私は間違って何をしていますか?
EDIT:ArrayAdapter GetViewメソッドから、私が持っている:から私は理解していれば
<RelativeLayout
android:id="@+id/relative2"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:gravity="center_vertical|left"
android:layout_marginLeft="20sp"
android:layout_marginRight="20sp"
android:background="@drawable/blue_bar">
<TextView android:id="@+id/name"
android:layout_toLeftOf="@+id/comment"
android:layout_width = "fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginLeft="20sp"
android:gravity="center_vertical"
android:focusable="false"
android:singleLine="true"
android:textSize="22sp"
android:textColor="@android:color/white"
android:ellipsize="end">
</TextView>
あなたはこれを実現することになっていますあなたの活動のコードを投稿することができますか? –