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.

转自:http://blog.csdn.net/catherine880619/article/details/7062533

你可能感兴趣的:(android)