android - 在方向改变时恢复 Lottie 动画
问题描述
Lottie 动画在定向时重新开始。有没有办法从它在肖像模式下停止的地方恢复它。这是我当前的 Lottie 动画视图代码。
<com.airbnb.lottie.LottieAnimationView
android:id="@+id/animation_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:lottie_autoPlay="true"
app:lottie_loop="true"
app:lottie_rawRes="@raw/hello_world" />
解决方案
推荐阅读
- ruby-on-rails - 如何使用 Rails 通过 OAuth 访问 WP REST API
- angular - 如何观察“searchTerm”输入字段的值变化?
- javascript - 如何将 django 中的数据渲染到 AJAX?
- javascript - 如何为每个 li 元素赋予 array[i][0]?
- javascript - Sequelize db:migrate 不更新模型
- javascript - 这里有什么问题?2行有几个错误。不可恢复的语法错误。(0% 扫描)
- python - 在 Raspberry Pi 上的 python 中仅打开一个位置参数
- r - 创建稀疏矩阵,然后对数据进行预测分析
- reactjs - 限制输入数量
- node.js - 如何使用 connection.db.collection 函数?