當我啓動我的應用程序時,所有其他UI組件都獲得了它們的特定高程,但BottomNavigationView卻不在我的BottomNavigationView上。仰角在BottomNavigationView上不起作用
這裏的XML:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/activity_main"
android:layout_width="match_parent"
android:layout_height="match_parent">
<FrameLayout
android:id="@+id/main_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_above="@+id/bottom_navigation"
android:layout_alignParentTop="true">
</FrameLayout>
<android.support.design.widget.BottomNavigationView
android:elevation="8dp"
android:id="@+id/bottom_navigation"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:itemBackground="@color/white"
app:itemIconTint="@drawable/nav_item_color_state"
app:itemTextColor="@drawable/nav_item_color_state"
android:layout_alignParentBottom="true"/>
</RelativeLayout>
我能做些什麼?
注意:沒有顏色是透明的。
將'android:background'屬性添加到BottomNavigationView並查看它是否有效 –
仍然沒有變化 – Ale4303
具有相同的問題。你找到解決方案嗎? @ Ale4303 –