Search code examples
androidsidebarfirefox-sidebar

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?


Solution

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