Sliding Drawer or Translate Animation?

by Aaron Buckner » Fri, 11 Feb 2011 22:31:54 GMT

Sponsored Links
 Ok I have an app requirement that seems to be a little off the beaten
path, My app needs to have a button on the bottom of the screen when a
user clicks on it the "drawer" should open to a specified position
revealing a horizontal listview, when the user clicks on one of those
items it opens another "sliding drawer" above the previous drawer
leaving it in place to allow another item to be selected.

Now as far as I can tell this isn't really supported as part of the
sliding drawer and I've pretty much worked out how to do it with
Translate animation however I have run into the problem with the
hitbox not following the animation, is there a straight forward way to
refresh the hitbox position or redraw the layout or do I need to
create a new layout and call it on completion?


Re: Sliding Drawer or Translate Animation?

by Mark Murphy » Fri, 11 Feb 2011 22:38:10 GMT


You don't need to "create a new layout", but you do need to adjust
your existing layout upon completion to make the new positioning rules
stick. Here is an example:

Mark Murphy (a Commons Guy)  |  | 

Android App Developer Books: 


Sponsored Links

Other Threads

1. Nexus One Review - Home - NexusOneBlog

Good morning!
Gangguin Iman teman2 di hari pertama beraktifitas 2010.

Full review!

Daniel Tumiwa

sent from my android

2. URGENT-> Is SQLiteOpenHelper.onUpgrade() called when installing update from Android Market Place?

I think it is as you described - if you left the database version
number the same, then onUpgrade() won't be called. This is what I have
experienced at least.

> Please help.

3. Porting Dalvik to other linux

4. MMC Mount infinete why?

5. Android developers in Boston

6. id-android forum

7. Clicking on an AppWidget to run onUpdate() - should we use ACTION_APPWIDGET_UPDATE?