4

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?

Martyn
  • 16,432
  • 24
  • 71
  • 104

2 Answers2

1

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

Patrick Kafka
  • 9,795
  • 3
  • 29
  • 44
  • 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 Oct 19 '10 at 18:38
  • I think this control can be made with a heavily customised Gallery control. Would be interested to see if anyone else has developed anything like this – Martyn Dec 21 '11 at 09:46
0

The first part can be solved by using a ListView. The second part I don't know yet. I'm looking for such a component as well.

Casper
  • 46
  • 1
  • 4