rifki_cs29

activity_main

Oct 24th, 2020
337
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.51 KB | None | 0 0
  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:id="@+id/container"
  5.    android:layout_width="match_parent"
  6.    android:layout_height="match_parent"
  7.    android:background="@color/colorPrimaryDark"
  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"
  24.        android:name="androidx.navigation.fragment.NavHostFragment"
  25.        android:layout_width="match_parent"
  26.        android:layout_height="match_parent"
  27.        app:defaultNavHost="true"
  28.        app:layout_constraintBottom_toTopOf="@id/nav_view"
  29.        app:layout_constraintEnd_toEndOf="parent"
  30.        app:layout_constraintStart_toStartOf="parent"
  31.        app:layout_constraintTop_toTopOf="parent"
  32.        app:navGraph="@navigation/mobile_navigation" />
  33.  
  34. </androidx.constraintlayout.widget.ConstraintLayout>
Add Comment
Please, Sign In to add comment