android - How can I handle touches outside of the nav drawer? -


i have set of buttons in android app change content of nav drawer when selected. ideally, when user clicks 1 of these buttons, nav drawer content change right away.

however, because nav drawer captures touch events first, first click closes nav drawer , second 1 changes content (and reopens drawer). is there simple way handle clicks outside of nav drawer before nav drawer captures them? have tried changing z-order of buttons, had no effect.

finally, add the complexity of problem, want allow behavior right-side nav-drawer. left-side drawer should close no matter outside drawer user touches.

i imagine extending navigationdrawer class , overriding ontouch achieve looking for.


Comments

Popular posts from this blog

php - mySql Join with 4 tables -

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -