`

ListView cannot be onItemClick in DialogFragment

阅读更多
   使用DialogFragment 里面设置一个LISTVIEW, 点击时候发现listview不能点击

   检查时候发现LISTVIEW里面的每一个item有一个checkBox 这样会自动回去focus导致listview无法点击某一列, 修改成不获取焦点即可
        <CheckBox
            android:id="@+id/common_tag"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentRight="true"
            android:background="@drawable/btn_check_box"
            android:focusable="false"
            android:button="@null"
            />
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics