Browse Source

Add launch screen. Fixes https://github.com/austinhuang0131/barinsta/issues/410

renovate/org.robolectric-robolectric-4.x
Ammar Githam 4 years ago
parent
commit
d7ecc935f7
  1. 2
      app/src/main/AndroidManifest.xml
  2. BIN
      app/src/main/res/drawable/barinsta_logo.png
  3. 10
      app/src/main/res/drawable/launch_screen.xml
  4. 4
      app/src/main/res/values/themes.xml

2
app/src/main/AndroidManifest.xml

@ -22,7 +22,7 @@
android:label="@string/app_name" android:label="@string/app_name"
android:requestLegacyExternalStorage="true" android:requestLegacyExternalStorage="true"
android:supportsRtl="true" android:supportsRtl="true"
android:theme="@style/AppTheme.Light.White"
android:theme="@style/AppTheme.Launcher"
tools:ignore="UnusedAttribute"> tools:ignore="UnusedAttribute">
<activity <activity
android:name=".activities.MainActivity" android:name=".activities.MainActivity"

BIN
app/src/main/res/drawable/barinsta_logo.png

After

Width: 300  |  Height: 284  |  Size: 48 KiB

10
app/src/main/res/drawable/launch_screen.xml

@ -0,0 +1,10 @@
<?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/grey_900" />
<item>
<bitmap
android:gravity="center"
android:src="@drawable/barinsta_logo" />
</item>
</layer-list>

4
app/src/main/res/values/themes.xml

@ -140,4 +140,8 @@
<item name="dmOutgoingBgColor">@color/deep_purple_400</item> <item name="dmOutgoingBgColor">@color/deep_purple_400</item>
<item name="dmDateHeaderBgColor">@color/deep_purple_600</item> <item name="dmDateHeaderBgColor">@color/deep_purple_600</item>
</style> </style>
<style name="AppTheme.Launcher" parent="AppTheme.Dark">
<item name="android:windowBackground">@drawable/launch_screen</item>
</style>
</resources> </resources>
Loading…
Cancel
Save