Android Question ActionDrawer and ViewPager

edgeryder1000

Member
Licensed User
Longtime User
I haven't tried it yet but I assume it would work. The navigation drawer only consumes gestures that start ear the edge of the screen, so as long as the user doesn't swipe from the edge the viewpager will work. If you're talking about putting a viewpager inside the drawer, then I'm not sure that swiping would work (it might), though changing the viewpager page using buttons would be fine.
Markus (corwin42) would be able to properly answer this, or you could just test it yourself and post the answer here :)
 
Upvote 0

gelay

Member
Licensed User
Longtime User
Hi there I'm stuck with the same problem... Ciprian can you please post some working code?
Thanx
Krisztian
 
Upvote 0

gelay

Member
Licensed User
Longtime User
Solved...

corwin42:
Don't add your content to the Activity or the Panel that contains the NavDrawer. Add your content to the NavDrawer.ContentPanel like

Code:
NavDrawer.ContentPanel.AddView(pContent, 0 ,0, 100%x, 100%y)
 
Upvote 0
Top