简体   繁体   中英

Android: making buttons off the view

I have to make complicated animated menu sliding from the top of the screen. Due to it's nature I can't use slidingDrawer... Is there any other option for it?

You should be able to animate a whole layout off the screen, if you supply negative parameters. This would allow you to hide a layout above or under the screen and slide it in once it is needed.

You could probably accomplish this using a Canvas and Drawables. Look here:

http://developer.android.com/guide/topics/graphics/2d-graphics.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM