Animate view sliding out of another view, pushing views below out of the way
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I have a list of buttons. When I press a button, a View should slide in a downwards motion out of the button, like this: Start: Halfway: End: How would I go about this? The View that should slide out is bigger than the button, so first hiding the View behind the button and then sliding it downwards causes the View to be visible above the button. That should not happen. Any ideas or examples on how to approach this? 回答1: I believe the simplest approach is to extend Animation class and override applyTransformation() to change the