简体   繁体   English

Android:关闭视图按钮

[英]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? 由于它的性质,我不能使用slideDrawer ...还有其他选择吗?

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. 您可能可以使用Canvas和Drawables完成此操作。 Look here: 看这里:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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