Tapping nested GridView
There is a GridView (1G) (days in scheduler), each cell of which consists of another GridView (2G) (time segments).
The goal is: when you tap any cell开发者_JAVA百科 of 2G the 1G cell in which 2G is nested must be activated. What we have at the moment: the 2G cell activates.Any ideas?
Why not try setting android:descendantFocusability="beforeDescendants"
on 1G.
Normally children take precedence on their parents.
To prevent this take a look to onInterceptTouchEvent().
精彩评论