<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:descendantFocusability="blocksDescendants"
android:layout_width="match_parent"
android:layout_height="match_parent">
<!--注意 android:descendantFocusability="blocksDescendants"-->
<ImageButton
android:id="@+id/img_but"
android:focusable="false"
android:clickable="true"
android:layout_marginTop="4dp"
android:layout_marginLeft="10dp"
android:src="@mipmap/ic_toggle_star"
android:layout_width="15dp"
android:layout_height="15dp" />
<!--注意 android:focusable="false"-->
<!--注意 android:clickable="true"-->
</LinearLayout >
ListView中item的点击事件与Button冲突??
猜你喜欢
转载自blog.csdn.net/qq_35809640/article/details/84760257
今日推荐
周排行