android - xml格式的动画启动屏幕android(图层列表)
问题描述
仅使用可绘制的 xml 文件(带有图层列表)并从 android Manifest 文件中调用它时,是否可以制作动画闪屏:
android:theme="@style/AppTheme.Launcher">
/风格
<!-- SPLASH TEST-->
<style name="AppTheme.Launcher">
<item name="android:windowBackground">@drawable/launch_screen</item>
</style>
xml 文件
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" android:opacity="opaque">
<item android:drawable="@color/colorPrimary"/>
<item>
<bitmap
android:src="@drawable/android_splash"
android:gravity="center"/>
</item>
假设我有 5 张 android_splash 的图像(1 2 3 4 5),我可以在启动屏幕动画的 launch-screen.xml 中进行更改吗?那么它在代码中会是什么样子呢?
真诚地
解决方案
推荐阅读
- azure - 天蓝色表存储:实体过滤器查询不会终止
- microsoft-cognitive - Microsoft-Cognitive 错误 429 既不是由频率也不是由大小引起的
- c# - 如何在c#中将.wav文件分成两部分
- react-native - React Native - 如何将捕获的图像存储在其他文件夹而不是图片文件夹
- android - Kotlin 中的数据绑定 + 房间。如何在 Kotlin 中绑定数据类?
- java - 无法使用 LibVLC 在 android 应用上加载 m3u 播放列表
- php - 如何修复变得不可读的 php 代码?
- mysql - 将 INNER JOIN 添加到我的 MySQL 查询中,以便我可以使用 DISTINCT
- flutter - 如何设置 Flutter Text 行距?
- reactjs - 你不应该在外面使用
使用 react-admin 创建教程应用程序时出错