कैसे सेट करें support V25
द्वारा। हमारे पास निचला नेविगेशन नामक नया घटक है।ऊंचाई को नीचे नेविगेशन
डिजाइन दिशानिर्देशों का पालन करें, नीचे नेविगेशन के elevation
8dp
(https://material.io/guidelines/components/bottom-navigation.html#bottom-navigation-specs)
होना चाहिए लेकिन मैं इसे करने के लिए elevation
निर्धारित नहीं कर सकते।
कोई भी सुझाव, उदाहरण की सराहना की जाएगी। धन्यवाद!
अद्यतन XML कोड
<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"/>
पोस्ट आपके XML नीचे नेविगेशन युक्त कोड। –
जांचें [यह] (https://code.google.com/p/android/issues/detail?id=226182&sort=-id%20-stars%20-status&colspec=ID%20Status%20Priority%20Owner%20Summary%20Stars % 20 रिपोर्टर% 20 खोला गया) और [यह] (http://stackoverflow.com/questions/40316411/bottomnavigationview-shadow-and-ripple-effect) –
इस दृष्टिकोण को आजमाएं: http://stackoverflow.com/questions/41650778/android -बॉटम-नेविगेशन-बार-साथ-ड्रॉप-छाया/41651284 # 41651284 –