Last active
September 21, 2016 01:17
-
-
Save namhyun-gu/42e37721ed643469c56fa04b1164e6a7 to your computer and use it in GitHub Desktop.
Remove toolbar top shadow
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
// Remove toolbar top shadow | |
// Base code is android studio new application template | |
// AndroidManifest.xml | |
<activity | |
android:name=".MainActivity" | |
android:label="@string/app_name" | |
- android:theme="@style/AppTheme.NoActionBar"> // Remove this line | |
+ android:theme="@style/AppTheme"> // Replace this line | |
// styles.xml | |
<!-- Base application theme. --> | |
- <style name="AppTheme" parent="Theme.AppCompat.Light"> | |
+ <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar"> | |
<!-- Customize your theme here. --> | |
<item name="colorPrimary">@color/colorPrimary</item> | |
<item name="colorPrimaryDark">@color/colorPrimaryDark</item> | |
<item name="colorAccent">@color/colorAccent</item> | |
<item name="android:windowBackground">@color/colorWhiteBackground</item> | |
</style> | |
- <style name="AppTheme.NoActionBar"> | |
- <item name="windowActionBar">false</item> | |
- <item name="windowNoTitle">true</item> | |
- </style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment