code
code

Reputation: 5642

How to increase the width of pulling the Navigation Drawer from the side

Is there an API to increase the width/sensitivity of pulling the Navigation Drawer from the left side of the screen? For ex: as of now, I need to press my finger closely to the left of the screen to pull the drawer out. I would like to increase this sensitivity.

Upvotes: 1

Views: 1594

Answers (2)

Biu
Biu

Reputation: 1076

There is no need to do that since the users could easily pop open the Navigation Drawer by pressing the title area iff you implement the DrawerListenerinterface or the more convinient ActionBarDrawerToggle class to provide the 3 horizontal line icon indicating there is Navigation Drawer being present. Then you just override the onPostCreate() method in your Activity and call ActionBarDrawerToggle.syncState() method to allow users to open the drawer by pressing about the title area. Click here for more info on how to achieve that. Hope this helps

Upvotes: 0

Ahmed Hegazy
Ahmed Hegazy

Reputation: 12605

There is a solution. You can Set drag margin for your Navigation Drawer

Check this link Set drag margin for Android Navigation Drawer

Upvotes: 3

Related Questions