Skip to content

Instantly share code, notes, and snippets.

@thenixan
Created January 12, 2018 14:51
Show Gist options
  • Save thenixan/24770d9b5ea93fc5d68ee7a3d482f18d to your computer and use it in GitHub Desktop.
Save thenixan/24770d9b5ea93fc5d68ee7a3d482f18d to your computer and use it in GitHub Desktop.
<resources>
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>
<style name="AppTheme.SplashScreen" parent="AppTheme">
<item name="android:windowBackground">@drawable/splash</item>
<item name="android:windowTranslucentStatus">true</item>
<item name="android:windowTranslucentNavigation">true</item>
</style>
...
</resources>
@sewerk
Copy link

sewerk commented Jan 15, 2018

small tip: no need to define parent="AppTheme" if you prefixing style name with parent name.
<style name="AppTheme.SplashScreen"> is enough

@thenixan
Copy link
Author

thenixan commented Feb 2, 2018

@sewerk, yep, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment