Reputation: 45
As i show in image below i want to remove the shadow of bottomnavigation .
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
Reputation: 15423
You have to use app:elevation
instead of android:elevation
app:elevation="0dp"
Upvotes: 5
Reputation: 313
Put this line in onCreate() method
getSupportActionBar().setElevation(0);
Upvotes: 0