Skip to content Skip to sidebar Skip to footer

Set Elevation Still Display Shadow Below Actionbar In Android

Inside values/styles.xml I have set 0dp to my AppTheme style. and inside values-21/styles.xml I have set Copy

Solution 2:

I don't know why elevation is not work in style. but When I set it programatically It's just work fine.

getSupportActionBar().setElevation(0);

Output :

enter image description here

Solution 3:

Put your toolbar in this.

<android.support.design.widget.AppBarLayout
        android:id="@+id/appBarLayout"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        app:elevation="0dp">

        ...

</android.support.design.widget.AppBarLayout>

Post a Comment for "Set Elevation Still Display Shadow Below Actionbar In Android"