1

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"/>
Md. Asaduzzaman
  • 14,963
  • 2
  • 34
  • 46
Mostafa
  • 45
  • 10

2 Answers2

5

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

app:elevation="0dp"
Md. Asaduzzaman
  • 14,963
  • 2
  • 34
  • 46
0

Put this line in onCreate() method

getSupportActionBar().setElevation(0);
Hagar Magdy
  • 293
  • 2
  • 10