且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用Android的样品抽屉式导航错误

更新时间:2023-01-10 12:24:50

我面对所提到的,你有类似的问题。我有一个相对布局内的列表视图( FILL_PARENT )。只要在列表视图中的含量较少,当我拖着列表视图外的区域,导航抽屉得到来袭。设置机器人:可点击=真正的的相对布局解决了这个问题。希望这可以帮助。

I faced a similar issue as mentioned by you. I had a list view inside a relative layout (FILL_PARENT). Whenever the content in the list view is less and when I dragged in the area outside the list view, the navigation drawer got struck. Setting android:clickable="true" for the relative layout resolved the problem. Hope this may help.