activity_main.xml 1.3 KB

12345678910111213141516171819202122232425262728293031
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <android.support.constraint.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. tools:context=".MainActivity">
  9. <android.support.v4.view.ViewPager
  10. android:id="@+id/viewPager"
  11. android:layout_width="0dp"
  12. android:layout_height="0dp"
  13. app:layout_constraintBottom_toTopOf="@+id/navigation"
  14. app:layout_constraintEnd_toEndOf="parent"
  15. app:layout_constraintStart_toStartOf="parent"
  16. app:layout_constraintTop_toTopOf="parent" />
  17. <android.support.design.widget.BottomNavigationView
  18. android:id="@+id/navigation"
  19. android:layout_width="0dp"
  20. android:layout_height="wrap_content"
  21. android:layout_marginStart="0dp"
  22. android:layout_marginEnd="0dp"
  23. android:background="?android:attr/windowBackground"
  24. app:layout_constraintBottom_toBottomOf="parent"
  25. app:layout_constraintLeft_toLeftOf="parent"
  26. app:layout_constraintRight_toRightOf="parent"
  27. app:menu="@menu/navigation" />
  28. </android.support.constraint.ConstraintLayout>