多层android动画

发布于 2024-12-23 09:39:49 字数 146 浏览 2 评论 0原文

我正在开发一款 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

如梦 2024-12-30 09:39:49

我的最佳解决方案是在框架布局中设置 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 :)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文