开发者

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().

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜