Newer
Older
org.ntlab.acanthus_client / app / src / main / res / layout / activity_main.xml
g-akagi on 30 Jul 2021 1 KB #162 タイトルバー下の重なりをなくせたはず
  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:id="@+id/container"
  6. android:layout_width="match_parent"
  7. android:layout_height="match_parent"
  8. android:paddingTop="?attr/actionBarSize">
  9.  
  10. <com.google.android.material.bottomnavigation.BottomNavigationView
  11. android:id="@+id/nav_view"
  12. android:layout_width="0dp"
  13. android:layout_height="wrap_content"
  14. android:layout_marginStart="0dp"
  15. android:layout_marginEnd="0dp"
  16. android:background="?android:attr/windowBackground"
  17. app:layout_constraintBottom_toBottomOf="parent"
  18. app:layout_constraintLeft_toLeftOf="parent"
  19. app:layout_constraintRight_toRightOf="parent"
  20. app:menu="@menu/bottom_nav_menu" />
  21.  
  22. <fragment
  23. android:id="@+id/nav_host_fragment_activity_main"
  24. android:name="androidx.navigation.fragment.NavHostFragment"
  25. android:layout_width="412dp"
  26. android:layout_height="0dp"
  27. android:layout_marginBottom="4dp"
  28. app:defaultNavHost="true"
  29. app:layout_constraintBottom_toTopOf="@+id/nav_view"
  30. app:layout_constraintHorizontal_bias="0.0"
  31. app:layout_constraintLeft_toLeftOf="parent"
  32. app:layout_constraintRight_toRightOf="parent"
  33. app:layout_constraintTop_toTopOf="parent"
  34. app:layout_constraintVertical_bias="0.921"
  35. app:navGraph="@navigation/mobile_navigation" />
  36.  
  37. </androidx.constraintlayout.widget.ConstraintLayout>