Listview item 按不下去問題
發生情況就是
protected void onListItemClick(ListView l, View v, int position, long id)
但點BUTTON有回應.
http://stackoverflow.com/questions/7274231/listfragment-onlistitemclick-not-being-called
SOLUTION:
xml version="1.0" encoding="utf-8"?>
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/cluster_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:background="#e0e0e0"
android:clickable="false"
android:descendantFocusability="blocksDescendants" >
android:id="@+id/cluster_sentiment_handle"
android:layout_width="40dp"
android:layout_height="match_parent"
android:background="@color/handle_red" />
留言
張貼留言