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 ViewGroup的descendantFocusability属性,包括其常量值及功能,帮助开发者更好地理解如何控制视图组与其后代视图之间的焦点关系。

762





