-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(android): icon splash screen support
Fixes TIMOB-28473
- Loading branch information
1 parent
cce763a
commit 2baef1e
Showing
12 changed files
with
180 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<style name="Theme.Titanium" parent="@style/Base.Theme.Titanium.Splash"> | ||
<item name="android:windowBackground">@drawable/background</item> | ||
<item name="titaniumSplashIcon">@drawable/appicon</item> | ||
</style> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
android/templates/app/angular-default/template/platform/android/res/values/styles.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
android/templates/app/webpack-default/template/platform/android/res/values/styles.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
android/titanium/res/drawable-v23/titanium_splash_icon_background.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<!-- Mimics Android 12 splash screen used by apps without a "roundIcon". --> | ||
<!-- Shows an app icon within a white circle like how it appears in the apps screen. --> | ||
<item android:drawable="?android:attr/colorBackground"/> | ||
<item android:gravity="center"> | ||
<shape android:shape="oval"> | ||
<size android:width="160dp" android:height="160dp"/> | ||
<solid android:color="@android:color/white"/> | ||
</shape> | ||
</item> | ||
<item | ||
android:gravity="center" | ||
android:width="90dp" | ||
android:height="90dp" | ||
android:drawable="?attr/titaniumSplashIcon"/> | ||
</layer-list> |
11 changes: 11 additions & 0 deletions
11
android/titanium/res/drawable-v26/titanium_splash_adaptive_icon_background.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<!-- Mimics Android 12 splash screen used by apps with a "roundIcon". --> | ||
<!-- Expected to be set to an <adaptive-icon/> drawable which is supported as of Android 8.0. --> | ||
<item android:drawable="?android:attr/colorBackground"/> | ||
<item | ||
android:gravity="center" | ||
android:width="160dp" | ||
android:height="160dp" | ||
android:drawable="?attr/titaniumSplashIcon"/> | ||
</layer-list> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions
7
android/titanium/res/drawable/titanium_splash_icon_background.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<item android:drawable="?android:attr/colorBackground"/> | ||
<item> | ||
<bitmap android:gravity="center" android:src="?attr/titaniumSplashIcon"/> | ||
</item> | ||
</layer-list> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<style name="Base.Theme.Titanium.Splash" parent="Theme.AppDerived"> | ||
<item name="android:navigationBarColor">?android:attr/colorBackground</item> | ||
<item name="android:statusBarColor">?android:attr/colorBackground</item> | ||
<item name="android:windowActionBar">false</item> | ||
<item name="android:windowBackground">@drawable/titanium_splash_icon_background</item> | ||
<item name="android:windowLightNavigationBar">?attr/isLightTheme</item> | ||
<item name="android:windowLightStatusBar">?attr/isLightTheme</item> | ||
<item name="android:windowNoTitle">true</item> | ||
<item name="android:windowSplashScreenBackground">?android:attr/colorBackground</item> | ||
<item name="android:windowSplashScreenIconBackgroundColor">@android:color/white</item> | ||
<item name="android:windowTranslucentNavigation">false</item> | ||
<item name="android:windowTranslucentStatus">false</item> | ||
<item name="titaniumSplashIcon">@drawable/titanium_icon_splash_empty</item> | ||
<item name="windowActionBar">false</item> | ||
<item name="windowNoTitle">true</item> | ||
</style> | ||
</resources> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters