How to get list selector for whole list item?
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<ImageView
android:id="@+id/icon"
android:layout_width="97dip"
android:layout_height="110dip"
android:paddingLeft="2dip"
android:paddingRight="2dip"
android:paddingTop="7dip"
android:paddingBottom="7dip"
android:layout_marginLeft="5dip"
/>
<LinearLayout
android:orientation="vertical"
a开发者_运维知识库ndroid:layout_width="0dip"
android:layout_weight="1"
android:layout_height="fill_parent">
<TextView
android:id="@+id/label"
android:layout_width="fill_parent"
android:layout_height="10dip"
android:layout_weight="0.4"
android:textSize="22dip"
android:textColor="#ffffff"
android:layout_marginTop="3dip"
android:layout_marginLeft="18dip"
android:gravity="center_vertical"
/>
<TextView
android:id="@+id/description"
android:layout_width="fill_parent"
android:layout_height="0dip"
android:layout_weight="1"
android:textSize="16dip"
android:layout_marginLeft="18dip"
/>
</LinearLayout>
am getting selection only for image its not selecting the whole listitem?how to fix it?
Learn how to declare layouts : Declaring Layout
精彩评论