views:

46

answers:

1
+2  Q: 

Android sidebar

I've been using firefox for Android and really like the use of the sidebar to hold shortcut icons and the like. How would I go about creating a similar bar myself with the following attributes:

  1. progressively revealed as I swipe in one direction
  2. progressively hides as I swipe in the other direction
  3. can be a custom width
  4. I can dynamically inject layout in to it or it can hold static content

Is there any open source code available? If not, what approach would I use to create this?

A: 

Sound like you're describing a Gallery control. There are some examples in the ApiDemos project here.

sadboy
Thanks for your answer, unfortunately this isn't what I was looking for. I want the sidebar to be vertical, along the side of the screen and only shows when the user swipes left or right across the screen.
Martyn