简体   繁体   English

如何在Android的Lottie动画中创建按钮?

[英]How to create a button inside a lottie animation in android?

I am working on a very simple game in which I will play different JSON files on some button click. 我正在开发一个非常简单的游戏,在该游戏中,单击某些按钮将播放不同的JSON文件。 So for this, I need a button inside a Lottie animation view. 因此,为此,我需要在Lottie动画视图中使用一个按钮。 Is this possible to set button inside a Lottie animation? 可以在Lottie动画中设置按钮吗?

I don't know of it's possible, try it out. 我不知道有没有可能,请尝试一下。 What is always possible is to wrap everything into a FrameLayout and overlay the first view with your button. 总是可以将所有内容包装到FrameLayout中,然后用按钮覆盖第一个视图。

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

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