Permanent NavigationView loose focus after an item is selected

耗尽温柔 提交于 2019-12-05 06:53:30

I would start by removing android:layout_gravity="start" This is simply not needed as its parent is a horizontal LinearLayout.

The Navigation Drawer must be permanently visible on Tablets and TV. They stay hidden for mobile. These are part of the Material Design guidelines.

This requires quite a different setup compared to what I see in your project on GitHub. Which includes supplying different resources using qualifiers.

This tutorial on Navigation Drawer (Design Support) will help you with exactly that setup, as per the latest Material Design guidelines. Alternatively the project files for the tutorial can be found on GitHub.

UPDATE: As pointed out, Support library v24 creates issues with the dpad. Reverting to v23 works just fine.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!