Mostafa
Mostafa

Reputation: 45

How to remove bottom navigation shadow

As i show in image below i want to remove the shadow of bottomnavigation . enter image description here

I try below solution and find noun of them useful :

Android: remove shadow from bottom navigation

here is my xml file :

<com.google.android.material.bottomnavigation.BottomNavigationView
    android:id="@+id/main_navigation"
    android:layout_width="match_parent"
    android:layout_height="56dp"
    android:background="#ffffff"
    android:theme="@style/Widget.BottomNavigationView"
    app:menu="@menu/botton_navigation_menu"
    android:layout_above="@+id/phone_frame"
    android:elevation="0dp"/>

Upvotes: 1

Views: 1439

Answers (2)

Md. Asaduzzaman
Md. Asaduzzaman

Reputation: 15423

You have to use app:elevation instead of android:elevation

app:elevation="0dp"

Upvotes: 5

Hagar Magdy
Hagar Magdy

Reputation: 313

Put this line in onCreate() method

getSupportActionBar().setElevation(0);

Upvotes: 0

Related Questions