Clean up splash screen code
This commit is contained in:
parent
141b7ac554
commit
07caea8b4e
9 changed files with 10 additions and 31 deletions
|
@ -27,7 +27,7 @@
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.main.MainActivity"
|
android:name=".ui.main.MainActivity"
|
||||||
android:launchMode="singleTask"
|
android:launchMode="singleTask"
|
||||||
android:theme="@style/SplashScreenBackground">
|
android:theme="@style/Theme.Splash">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.intent.action.MAIN" />
|
<action android:name="android.intent.action.MAIN" />
|
||||||
<category android:name="android.intent.category.LAUNCHER" />
|
<category android:name="android.intent.category.LAUNCHER" />
|
||||||
|
|
|
@ -1,10 +0,0 @@
|
||||||
<?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/material_grey_50"/>
|
|
||||||
<item>
|
|
||||||
<bitmap
|
|
||||||
android:src="@drawable/branded_logo_icon"
|
|
||||||
android:gravity="center"/>
|
|
||||||
</item>
|
|
||||||
</layer-list>
|
|
Binary file not shown.
Before Width: | Height: | Size: 22 KiB |
|
@ -2,7 +2,6 @@
|
||||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
<item android:drawable="@color/colorSplash" />
|
<item android:drawable="@color/colorSplash" />
|
||||||
<item
|
<item
|
||||||
android:gravity="center"
|
android:drawable="@drawable/tachiyomi_circle"
|
||||||
android:drawable="@mipmap/ic_launcher_round">
|
android:gravity="center"></item>
|
||||||
</item>
|
|
||||||
</layer-list>
|
</layer-list>
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintLeft_toLeftOf="parent"
|
app:layout_constraintLeft_toLeftOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
tools:src="@drawable/branded_logo_icon" />
|
tools:src="@drawable/tachiyomi_circle" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/manga_title"
|
android:id="@+id/manga_title"
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
app:layout_constraintVertical_bias="0.0"
|
app:layout_constraintVertical_bias="0.0"
|
||||||
tools:src="@drawable/branded_logo_icon"/>
|
tools:src="@drawable/tachiyomi_circle"/>
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/track_search_title"
|
android:id="@+id/track_search_title"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
<color name="colorDarkPrimaryDark">#1C1C1D</color>
|
<color name="colorDarkPrimaryDark">#1C1C1D</color>
|
||||||
<color name="colorAmoledPrimary">@color/md_black_1000</color>
|
<color name="colorAmoledPrimary">@color/md_black_1000</color>
|
||||||
|
|
||||||
|
<color name="colorSplash">#455A64</color>
|
||||||
|
|
||||||
<!-- Light Theme -->
|
<!-- Light Theme -->
|
||||||
<color name="colorAccentLight">@color/md_blue_A400</color>
|
<color name="colorAccentLight">@color/md_blue_A400</color>
|
||||||
<color name="textColorPrimaryLight">@color/md_black_1000_87</color>
|
<color name="textColorPrimaryLight">@color/md_black_1000_87</color>
|
||||||
|
@ -84,6 +86,4 @@
|
||||||
|
|
||||||
<color name="md_teal_500">#009688</color>
|
<color name="md_teal_500">#009688</color>
|
||||||
|
|
||||||
<color name="colorSplash">#455A64</color>
|
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -1,16 +1,6 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources>
|
<resources>
|
||||||
|
|
||||||
|
|
||||||
<!--=============-->
|
|
||||||
<!--Splash Screen-->
|
|
||||||
<!--=============-->
|
|
||||||
|
|
||||||
<style name="SplashScreenBackground" parent="Theme.Tachiyomi">
|
|
||||||
<item name="android:windowBackground">@drawable/splash_background</item>
|
|
||||||
</style>
|
|
||||||
|
|
||||||
|
|
||||||
<!--========-->
|
<!--========-->
|
||||||
<!--Toolbars-->
|
<!--Toolbars-->
|
||||||
<!--========-->
|
<!--========-->
|
||||||
|
|
|
@ -156,8 +156,8 @@
|
||||||
<!--===============-->
|
<!--===============-->
|
||||||
<!-- Launch Screen -->
|
<!-- Launch Screen -->
|
||||||
<!--===============-->
|
<!--===============-->
|
||||||
<style name="Theme.BrandedLaunch">
|
<style name="Theme.Splash" parent="Theme.Tachiyomi">
|
||||||
<item name="android:windowBackground">@drawable/branded_logo</item>
|
<item name="android:windowBackground">@drawable/splash_background</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
|
Reference in a new issue