diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index cccafd4..8f4aa36 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -10,10 +10,10 @@ android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" - android:roundIcon="@mipmap/ic_launcher_round" + android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" android:theme="@style/NPSTheme"> - + diff --git a/app/src/main/java/com/illusionware/npsbrowser/activities/SplashActivity.kt b/app/src/main/java/com/illusionware/npsbrowser/activities/SplashActivity.kt new file mode 100644 index 0000000..67dbd75 --- /dev/null +++ b/app/src/main/java/com/illusionware/npsbrowser/activities/SplashActivity.kt @@ -0,0 +1,36 @@ +package com.illusionware.npsbrowser.activities + +import android.content.Intent +import android.os.Bundle +import android.view.View +import com.illusionware.npsbrowser.activities.mainactivity.MainActivity + +class SplashActivity : BaseActivity() { + + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + + startActivity(Intent(this, MainActivity::class.java)) + finish() + } + + override fun onWindowFocusChanged(hasFocus: Boolean) { + super.onWindowFocusChanged(hasFocus) + if (hasFocus) hideSystemUI() + } + + private fun hideSystemUI() { + // Enables regular immersive mode. + // For "lean back" mode, remove SYSTEM_UI_FLAG_IMMERSIVE. + // Or for "sticky immersive," replace it with SYSTEM_UI_FLAG_IMMERSIVE_STICKY + window.decorView.systemUiVisibility = (View.SYSTEM_UI_FLAG_IMMERSIVE + // Set the content to appear under the system bars so that the + // content doesn't resize when the system bars hide and show. + or View.SYSTEM_UI_FLAG_LAYOUT_STABLE + or View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION + or View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN + // Hide the nav bar and status bar + or View.SYSTEM_UI_FLAG_HIDE_NAVIGATION + or View.SYSTEM_UI_FLAG_FULLSCREEN) + } +} \ No newline at end of file diff --git a/app/src/main/res/drawable-v24/splash.xml b/app/src/main/res/drawable-v24/splash.xml new file mode 100644 index 0000000..dfc6f06 --- /dev/null +++ b/app/src/main/res/drawable-v24/splash.xml @@ -0,0 +1,15 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/ic_nps_fg_no_shadow.xml b/app/src/main/res/drawable/ic_nps_fg_no_shadow.xml new file mode 100644 index 0000000..c6d84e3 --- /dev/null +++ b/app/src/main/res/drawable/ic_nps_fg_no_shadow.xml @@ -0,0 +1,124 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/drawable/splash_gradient.xml b/app/src/main/res/drawable/splash_gradient.xml new file mode 100644 index 0000000..fe46205 --- /dev/null +++ b/app/src/main/res/drawable/splash_gradient.xml @@ -0,0 +1,7 @@ + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/activity_splash.xml b/app/src/main/res/layout/activity_splash.xml new file mode 100644 index 0000000..8cbc6fc --- /dev/null +++ b/app/src/main/res/layout/activity_splash.xml @@ -0,0 +1,19 @@ + + + + + + \ No newline at end of file diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index e7a2232..ccce555 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -1,37 +1,42 @@ - - - - - - - - - - - - + + + + + + + + + +