- styles.xml
<resources>
<style name="AppTheme" parent="@style/Theme.AppCompat.Light">
<item name="windowNoTitle">true</item>
<item name="android:windowIsTranslucent">false</item>
<item name="android:windowBackground">@drawable/background_splash</item>
</style>
</resources>
- background_splash.xml (Replace android:src="@mipmap/icon" with your value)
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:drawable="@color/white"/>
<item>
<bitmap
android:gravity="center"
android:src="@mipmap/icon"/>
</item>
</layer-list>
- colors.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="white">#FFFFFF</color>
</resources>
- Splash.uxl
<Extensions Backend="CPlusPlus" Condition="Android">
<CopyFile Name="background_splash.xml" TargetName="app/src/main/res/drawable/background_splash.xml" />
<CopyFile Name="styles.xml" TargetName="app/src/main/res/values/styles.xml" />
<CopyFile Name="colors.xml" TargetName="app/src/main/res/values/colors.xml" />
</Extensions>
2 Likes