且构网

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

触摸任何地方,滑动打开菜单导航抽屉

更新时间:2022-12-20 16:05:01

我已经找到了解决办法。您可以配置触摸的保证金,并使其尽可能广泛你的观点。这里是链接

Set拖累利润率为Android导航抽屉

For Sliding menu by jfeinstein10 (https://github.com/jfeinstein10/SlidingMenu), I can slide anywhere in the app to slide open the menu.

For Google newly introduced navigation drawer http://developer.android.com/design/patterns/navigation-drawer.html#side-nav, is there any way I can have similar behaviour?

So far, from documentation, I saw it only limit to slide from edge or touching the app icon.

The user can bring the navigation drawer onto the screen by swiping from the left edge of the screen or by touching the application icon on the action bar.

I have found a solution. You can configure margin of touch and make it as wide as your view is. Here is the link

Set drag margin for Android Navigation Drawer