【Android】ListView与Button的共存问题解决

注意:

<RelativeLayout>中

android:descendantFocusability="blocksDescendants"

<ImageButton>中

android:focusable="false"

这两项的设置很关键,如果不设置,将导致ListView的ItemClick事件将无法触发,该事件被ImageButton的click事件屏蔽了。

posted on 2011-12-28 11:34  see2851  阅读(213)  评论(0编辑  收藏  举报

导航