android:descendantFocusability 焦点 父控件与子控件焦点
16lz
2021-01-23
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 控件常用属性
- Android修改默认控件焦点不highlight
- android程序在Layout中设置控件水平或垂直居中
- Android:控件样式触发
- Android Studio 的原生输入框控件 EditText 属性配置详解
- 详细介绍MvcPager分页控件使用的实例方法
- ItemsControl 的布局控件实例
- Windows 10 - 控件(集合类)的详细介绍
- jquery pqgrid分页控件乱码是什么情况?