activity_main.xml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <layout 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. <data>
  6. </data>
  7. <androidx.appcompat.widget.LinearLayoutCompat
  8. style="@style/match"
  9. android:weightSum="1"
  10. android:background="@mipmap/activity_background"
  11. android:orientation="vertical"
  12. tools:context=".view.MainActivity">
  13. <com.google.android.material.appbar.AppBarLayout
  14. style="@style/fullWidth"
  15. app:layout_constraintStart_toStartOf="parent"
  16. app:layout_constraintTop_toTopOf="parent">
  17. <com.google.android.material.appbar.MaterialToolbar
  18. android:id="@+id/materialToolbar"
  19. style="@style/Widget.MaterialComponents.Toolbar.Primary"
  20. android:layout_width="match_parent"
  21. android:layout_height="?attr/actionBarSize" />
  22. </com.google.android.material.appbar.AppBarLayout>
  23. <androidx.fragment.app.FragmentContainerView
  24. android:id="@+id/navActivity"
  25. android:name="androidx.navigation.fragment.NavHostFragment"
  26. android:layout_width="match_parent"
  27. android:layout_height="0dp"
  28. android:layout_weight="1"
  29. app:defaultNavHost="true"
  30. app:layout_constraintBottom_toBottomOf="parent"
  31. app:layout_constraintEnd_toEndOf="parent"
  32. app:layout_constraintStart_toStartOf="parent"
  33. app:layout_constraintTop_toTopOf="parent"
  34. app:navGraph="@navigation/nav_main" />
  35. </androidx.appcompat.widget.LinearLayoutCompat>
  36. </layout>