How to Remove Shadow Below ActionBar or Toolbar

How to Remove Shadow Below ActionBar or Toolbar

Hello Again,

I tried toRemove Shadow Below ActionBar with the Theme.AppCompat.Light.NoActionBar, using every recommendation of people, but no luck.

How to Remove Shadow ActionBar or Toolbar

Like it seems in the below picture.

Popular Posts

Finally.. I’m sharing the solution

So the solution is :

If your Toolbar is inside android.support.design.widget.AppBarLayout Adding app:elevation=”0dp” on android.support.design.widget.AppBarLayoutwill solve your problem.

Else add app:elevation="0dp" on Toolbar.

<android.support.design.widget.AppBarLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/appbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
android:fitsSystemWindows="true"
app:elevation="0dp">

<android.support.v7.widget.Toolbar
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:popupTheme="@style/ThemeOverlay.AppCompat.Light" />

So the issue got solved now 🙂

Happy Coding & Hope it helps 🙂

Tags – Remove Shadow ActionBar, Remove Shadow ActionBar Android, Remove Shadow, Android Shadow, Remove Shadow on TopBar, Remove Shadow Below Action, Remove Shadow Below Bar, Remove Shadow Below Android App, Remove Shadow Below Android Application, Remove Shadow Below Top Bar, Remove Shadow Below Action Android App, Android App Tutorials, Remove Shadow Below Android Action or Top Bar, Below Action Bar.

Related threads

Leave a comment