因为在TextView中设置了android:textIsSelectable="true",导致它在4.2下点击进,onItemClick事件无影响。但在2.2下正常。 <LinearLayout xmlns:android="http://schemas./apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="horizontal"> <TextView android:textIsSelectable="false" android:id="@+id/location_item_addr" android:layout_width="match_parent" android:gravity="left|center_vertical" android:layout_height="45dip" android:paddingLeft="5dip" android:singleLine="true" android:ellipsize="end" android:textSize="20sp"/> </LinearLayout> |
|