Advertisement
Guest User

activity_main.xml

a guest
Jul 6th, 2019
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 5 1.59 KB | None | 0 0
  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.  
  10.     <FrameLayout
  11.         android:id="@+id/container_layout"
  12.         android:layout_width="0dp"
  13.         android:layout_height="0dp"
  14.         android:layout_marginStart="8dp"
  15.         android:layout_marginTop="8dp"
  16.         android:layout_marginEnd="8dp"
  17.         android:layout_marginBottom="8dp"
  18.         android:text="@string/title_home"
  19.         app:layout_constraintBottom_toTopOf="@+id/nav_view"
  20.         app:layout_constraintEnd_toEndOf="parent"
  21.         app:layout_constraintStart_toStartOf="parent"
  22.         app:layout_constraintTop_toTopOf="parent" />
  23.  
  24.     <android.support.design.widget.BottomNavigationView
  25.         android:id="@+id/nav_view"
  26.         android:layout_width="0dp"
  27.         android:layout_height="wrap_content"
  28.         android:background="?android:attr/windowBackground"
  29.         app:layout_constraintBottom_toBottomOf="parent"
  30.         app:layout_constraintLeft_toLeftOf="parent"
  31.         app:layout_constraintRight_toRightOf="parent"
  32.         app:menu="@menu/bottom_nav_menu" />
  33.  
  34.     <FrameLayout
  35.         android:layout_height="match_parent"
  36.         android:layout_width="match_parent"
  37.         android:id="@+id/fragment_container" />
  38.  
  39. </android.support.constraint.ConstraintLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement