fragment_main.xml 942 B

123456789101112131415161718192021
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent">
  6. <!-- 底部导航栏 -->
  7. <com.google.android.material.bottomnavigation.BottomNavigationView
  8. android:id="@+id/bottomNavView"
  9. android:layout_width="match_parent"
  10. android:layout_height="wrap_content"
  11. android:background="?android:attr/windowBackground"
  12. app:itemIconTint="@android:color/black"
  13. app:itemTextColor="@android:color/black"
  14. app:layout_constraintBottom_toBottomOf="parent"
  15. app:layout_constraintLeft_toLeftOf="parent"
  16. app:layout_constraintRight_toRightOf="parent"
  17. app:menu="@menu/bottom_navigation_menu" />
  18. </androidx.constraintlayout.widget.ConstraintLayout>