2017-08-14 61 views
0

this is my bottom bar and i want to make it fixed without this animation如何讓BottomBar在android中修復?

我的導航代碼

<android.support.design.widget.BottomNavigationView 
    xmlns:android="http://schemas.android.com/apk/res/android" 
    xmlns:app="http://schemas.android.com/apk/res-auto" 
    android:id="@+id/navigation" 
    android:layout_width="match_parent" 
    android:layout_height="wrap_content" 
    android:background="?android:attr/windowBackground" 
    app:menu="@menu/navigation" 
    app:tabMode="fixed" 


    android:backgroundTint="#F0F0F0" 
    app:itemBackground="@color/white" 
    app:itemIconTint="@color/colorPrimary" 
    app:itemTextColor="@color/colorPrimary" 

    /> 
+0

您可以嘗試使用'TabLayout'並將其放在底部。它會起作用。 –

回答