I want to disable ActionBar
shadow but only in one Activity
. If I use this code it will be change in whole aplication.
<style name="MyAppTheme" parent="android:Theme.Holo.Light">
<item name="android:windowContentOverlay">@null</item>
</style>
I tried this code, but it is not working
getSupportActionBar().setElevation(0);
Any suggestion...?
Add app:elevation="0dp" to appbarlayout as shown below:
Create a new Theme that inherits your App theme:
and let your activity use this theme. In your Manifest:
You can set your own style for Activity for this:
So in Manifest.xml you can set different style for all Activities:
Or you can set the right theme programmatically in onCreate() method: