Reputation: 1972
Any ideas how we can make a menu like the one that Google has implemented in their YouTube app. I've read this, but that solution differs from the behaviour of the YouTube application. Does anyone know a real way to go about this?
I'm talking about this:
Upvotes: 1
Views: 2084
Reputation: 8531
I believe that they use a HorizontalScroll in a RelativeLayout.
Image that the menu is always there to the left. You make that first. Then you place a HorizontalScrollView on top of that and then put your main content in that. Set your horizontal scrolling properties to only scroll a certain max. Then you wire up your menu button to slide your horizontalscrollview to the max you set and that should be it.
You can always check the source to the People Application in ICS. They do something very similar.
Upvotes: 1