Skip to content

Commit

Permalink
Merge pull request #16 from SlaVcE14/splash-screen
Browse files Browse the repository at this point in the history
Add splash screen
  • Loading branch information
SlaVcE14 authored Oct 30, 2023
2 parents 98bf9e2 + 366ea0a commit c225e2c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@ dependencies {

implementation 'com.google.code.gson:gson:2.10.1'
implementation 'com.github.slavce14:sj-dialog:1.6.1'
implementation "androidx.core:core-splashscreen:1.0.1"
}
1 change: 1 addition & 0 deletions app/src/main/java/com/sjapps/about/LibraryList.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ public class LibraryList extends ListGenerator{
public void init() {
addItem("SJ Dialog", BuildConfig.VERSION_NAME, "https://github.com/SlaVcE14/SJ-Dialog");
addItem("gson", GsonBuildConfig.VERSION, "https://github.com/google/gson");
addItem("core-splashscreen","1.0.1","https://developer.android.com/develop/ui/views/launch/splash-screen");
}
}

3 changes: 2 additions & 1 deletion app/src/main/res/values-night/themes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
<item name="materialButtonStyle">@style/ButtonColor</item>

<item name="android:statusBarColor">?android:windowBackgroundFallback</item>

<item name="android:windowSplashScreenBackground" tools:targetApi="s">#000000</item>
<item name="android:windowSplashScreenIconBackgroundColor" tools:targetApi="s">#000000</item>
</style>
<style name="ButtonColor" parent="@android:style/Widget.Button">
<item name="android:background">@drawable/ripple_button</item>
Expand Down
3 changes: 3 additions & 0 deletions app/src/main/res/values/themes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
<item name="colorPrimaryInverse">@color/md_theme_light_primaryInverse</item>

<item name="android:statusBarColor">?android:windowBackgroundFallback</item>
<item name="android:windowSplashScreenBackground" tools:targetApi="s">#ffffff</item>
<item name="android:windowSplashScreenIconBackgroundColor" tools:targetApi="s">#ffffff</item>

<item name="android:windowLightStatusBar">true</item>

<item name="materialButtonStyle">@style/ButtonColor</item>
Expand Down

0 comments on commit c225e2c

Please sign in to comment.