In android,sometimes our focus may lost,where is the reason

if we has a ViewGroup,and the viewGroup is focusable.in this case ,we should the attribute :

android:descendantFocusability = blocksDescendants (if descendants don't need focus)
android:descendantFocusability = beforeDescendants (if descendants need focus)

if we set nothing,the focus may lost(or not visible)
posted @ 2017-12-25 10:49  天长地久-无为  阅读(185)  评论(0编辑  收藏  举报