activity_main.xml 1.4 KB

123456789101112131415161718192021222324252627282930
  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. xmlns:tools="http://schemas.android.com/tools"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. tools:context=".ui.main.MainActivity">
  8. <androidx.viewpager2.widget.ViewPager2
  9. android:id="@+id/view_pager"
  10. android:layout_width="match_parent"
  11. android:layout_height="0dp"
  12. app:layout_constraintBottom_toTopOf="@+id/navigation"
  13. app:layout_constraintTop_toTopOf="parent" />
  14. <com.google.android.material.bottomnavigation.BottomNavigationView
  15. android:id="@+id/navigation"
  16. android:layout_width="match_parent"
  17. android:layout_height="wrap_content"
  18. android:background="@color/white"
  19. app:itemBackground="@null"
  20. app:itemIconSize="24dp"
  21. app:itemTextAppearanceActive="@style/bottom_tab_title_active"
  22. app:itemTextAppearanceInactive="@style/bottom_tab_title_inactive"
  23. app:labelVisibilityMode="labeled"
  24. app:layout_constraintBottom_toBottomOf="parent"
  25. app:layout_constraintTop_toBottomOf="@+id/view_pager"
  26. app:menu="@menu/bottom_nav_item"
  27. tools:ignore="MissingConstraints" />
  28. </androidx.constraintlayout.widget.ConstraintLayout>