คำถามติดแท็ก bottombar

10
BottomNavigationView ที่มีมากกว่า 3 รายการ: ชื่อแท็บซ่อนอยู่
ฉันใช้ BottomNavigationView โดยใช้ Android Support Desing Library 25 แต่เมื่อฉันเปลี่ยนแท็บชื่อของแท็บอื่นก็ซ่อนอยู่ แต่ไม่มีปัญหาในการซ่อนมุมมองการนำทางด้านล่างที่แท้จริง แต่ของฉันซ่อนอยู่ แต่ฉันอยากให้มันเป็นแบบนั้น มีความคิดที่จะทำอย่างไร ฉันขาดอะไรไป? นี่คือรหัสของฉัน: activity_main.xml <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" tools:context="com.example.yunus.ototakip.MainActivity"> <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:id="@+id/bottom_navigation" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true" app:itemBackground="@color/colorPrimary" app:itemIconTint="@color/beyaz" app:itemTextColor="@color/beyaz" app:menu="@menu/bottombar_menu" /> bottom_bar_menu.xml <menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"> <item android:id="@+id/bb_menu_arac" android:enabled="true" android:icon="@drawable/icon_car" android:title="@string/araclarim" …
โดยการใช้ไซต์ของเรา หมายความว่าคุณได้อ่านและทำความเข้าใจนโยบายคุกกี้และนโยบายความเป็นส่วนตัวของเราแล้ว
Licensed under cc by-sa 3.0 with attribution required.