在滑动抽屉内单击
我实现了一个滑动抽屉。但问题是这样的:
我在主屏幕上有一个列表视图,底部有一个抽屉手柄 如果我单击列表视图 - 我已将其编程为打开另一个活动。
当我打开滑动抽屉时,它会漂亮地弹开。 但是,当我单击滑动抽屉内容内部时,它的响应就好像我单击了上一个屏幕中的列表视图一样!
任何有关如何避免这种情况的帮助可能会有很大帮助! 提前致谢。
I have a sliding drawer implemented. But the problem is this:
I have a list view on the main screen with a drawer handle seen in the bottom
If I click on the list view - I have programmed it to open another activity.
When I open the sliding drawer it pops open beautifully.
But when I click inside the sliding drawers contents, It responds as if I have clicked the list view in the previous screen!
Any help as to how to avoid this might be of great help!
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
解决了这个问题。我需要滑动抽屉来显示菜单。用菜单选项填满抽屉内容和tadaa!问题解决了。我认为这个问题的出现是因为即使滑动抽屉看起来像一个单独的“视图”,但它实际上处于同一个视图中。
Solved this. I needed the sliding drawer to display a menu. Filled up the drawers content with the menu options and tadaa! problem solved. I think this problem arose due to the face that even though the sliding drawer seems like a separate "view" it actually is in the same view.