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

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -