多层android动画
我正在开发一款 Android 应用程序,该应用程序需要多个视图,这些视图将在一个主视图(FramLayout)中相互重叠。这 3 个视图中的每一个都具有相同的大小并具有不同类型的动画。就设计而言,最好的方法是什么?我更愿意以编程方式执行此操作。是否有不同视图与动画重叠的示例?
I am working on an android application that requires multiple views which will overlap each other in one main view (FramLayout). Each of those 3 views will be the same size and have different kinds of animations. As far as the design, what would be the best approach? I would prefere to do this programmatically. Is there an example of different views being overlapped with animations?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我的最佳解决方案是在框架布局中设置 3 个带有视图充气器的视图,在前面设置带有表面视图的主要动画,然后在其后面设置较少的其他视图动画。这将允许您轻松更新前面的层之一:)
The best solution I had was have 3 views with view inflators wihtin the framelayout, Have the main animations with a surface view in the front then have less animations with the othe views behind them. This will allow you to easily update one of the previous layers :)