关于ListView中假如Button,EditText无法响应问题
16lz
2021-01-23
个人成功试验结果:
为Button或者EditText加上一个布局;
<RelativeLayoutandroid:layout_width="wrap_content"android:layout_height="wrap_content"android:descendantFocusability="blocksDescendants"><Buttonandroid:id="@+id/attention_btn"android:layout_width="wrap_content"android:layout_height="wrap_content"android:background="@drawable/btn_attention_normal"android:layout_alignParentRight="true"android:focusable="false"/></RelativeLayout>
其中两个重要的属性:
RelativeLayout:android:descendantFocusability="blocksDescendants"
Button:android:focusable="false"
更多相关文章
- 各种控件属性
- AndroidManifest.xml 中application 的 android:name 属性作用
- Android键盘属性
- Android布局属性详解之RelativeLayout
- android排版布局学习
- xmlns:android作用以及自定义布局属性
- android 布局文件 layout_weight用法
- andriod布局常用控件