android:descendantFocusability 焦点 父控件与子控件焦点
16lz
2021-12-04
android:descendantFocusability 焦点 父控件与子控件焦点
android:descendantFocusability
Defines the relationship between the ViewGroup and its descendants when looking for a View to take focus.
Must be one of the following constant values.
Constant Value Description
beforeDescendants 0 The ViewGroup will get focus before any of its descendants.
afterDescendants 1 The ViewGroup will get focus only if none of its descendants want it.
blocksDescendants 2 The ViewGroup will block its descendants from receiving focus
android:descendantFocusability
Defines the relationship between the ViewGroup and its descendants when looking for a View to take focus.
Must be one of the following constant values.
Constant Value Description
beforeDescendants 0 The ViewGroup will get focus before any of its descendants.
afterDescendants 1 The ViewGroup will get focus only if none of its descendants want it.
blocksDescendants 2 The ViewGroup will block its descendants from receiving focus
更多相关文章
- Android中VISIBLE、INVISIBLE、GONE的区别
- Android(安卓)控件常用属性
- Android相对布局
- android程序在Layout中设置控件水平或垂直居中
- Android修改默认控件焦点不highlight
- Android(安卓)TextView 文字居中
- Android:控件样式触发
- Android(安卓)Studio 的原生输入框控件 EditText 属性配置详解
- Android(安卓)UI系列-----RelativeLayout的相关属性