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. Communicating with the browser

Hi all,

if I run a client (any kind of a client, let's say javascript) on the
browser which access a remote web server and retrieves a page
I can theoritically intercept that request and have a local agent
return to the browser (on the socket that it was writing to) a
using standard HTTP headers in test. Yes? I can easily do that
with many browsers (Firefox, IE, Safari etc.). Does anyone know as
to why I cannot do this in Android and its native browser? I have been
trying to go over the and the commons HTTP
libs from the source but are not too easy to follow. Any suggestions
would be greatly appreciated.



2. Getting users phone speeds for automatic settings

In my game I have 3 different detail levels low medium and high. I want the
game to be able to automatically pick the detail level because someone
comment saying the game was lagging but never bothered to click on the
detail level settings.

So is there anyway I can determine the phones clock speed or the phone model
or something that will let it decide because then otherwise i will have
to determine the time it takes to finish a loop and average it, but it would
not work to well because the game would already be running.


3. finding sprite position relative to background image

4. how to disable hint while typing password in android

5. Gingerbread on Nexus One and spam text messages

6. implementing 2 player interactivity

7. memory hilang kemana ??