So durch die support V25
. Wir haben eine neue Komponente namens Bottom Navigation.So stellen Sie die Höhe auf Unten Navigation
die Design-Richtlinien folgen, die Bottom Navigation des elevation
sollte 8dp
(https://material.io/guidelines/components/bottom-navigation.html#bottom-navigation-specs)
sein, aber ich kann die elevation
es nicht gesetzt.
Jeder Vorschlag, Beispiel würde geschätzt werden. Vielen Dank!
UPDATE XML CODE
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.design.widget.BottomNavigationView
android:id="@+id/bottom_navigation"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:elevation="8dp"
app:elevation="8dp"
app:itemBackground="@color/colorPrimary"
app:itemIconTint="@drawable/bottom_nav_color_state"
app:itemTextColor="@drawable/bottom_nav_color_state"
app:menu="@menu/bottom_navigation_main"/>
<FrameLayout
android:id="@+id/contentFrame"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_above="@id/bottom_navigation"
android:background="#EDEDED"/>
posten Sie Ihre XML-Code unten Navigation enthält. –
check [this] (https://code.google.com/p/android/issues/detail?id=226182&sort=-id%20-stars%20-status&colspec=ID%20Status%20Priority%20Owner%20Summary%20Stars % 20Reporter% 20Opened) und [dies] (http://stackoverflow.com/questions/40316411/bottomnavigationview-shadow-and-ripple-effect) –
Versuchen Sie diesen Ansatz: http://stackoverflow.com/questions/41650778/android -bottom-navigation-bar-with-drop-shadow/41651284 # 41651284 –