activity_service.xml 1.3 KB

12345678910111213141516171819202122232425262728293031
  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. <FrameLayout
  8. android:id="@+id/contentContainer"
  9. android:layout_width="0dp"
  10. android:layout_height="0dp"
  11. app:layout_constraintBottom_toTopOf="@+id/bottomNavView"
  12. app:layout_constraintEnd_toEndOf="parent"
  13. app:layout_constraintStart_toStartOf="parent"
  14. app:layout_constraintTop_toTopOf="parent" />
  15. <!-- 底部导航栏 -->
  16. <com.google.android.material.bottomnavigation.BottomNavigationView
  17. android:id="@+id/bottomNavView"
  18. android:layout_width="0dp"
  19. android:layout_height="wrap_content"
  20. android:background="?android:attr/windowBackground"
  21. app:itemIconTint="@android:color/black"
  22. app:itemTextColor="@android:color/black"
  23. app:layout_constraintBottom_toBottomOf="parent"
  24. app:layout_constraintLeft_toLeftOf="parent"
  25. app:layout_constraintRight_toRightOf="parent"
  26. app:menu="@menu/bottom_navigation_menu" />
  27. </androidx.constraintlayout.widget.ConstraintLayout>