Skip to content

Instantly share code, notes, and snippets.

@yudikarma
Last active March 19, 2019 10:23
Show Gist options
  • Save yudikarma/6098f417387e000516b0fbbd783539de to your computer and use it in GitHub Desktop.
Save yudikarma/6098f417387e000516b0fbbd783539de to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools">
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:background="@color/grey_5" android:fitsSystemWindows="true"
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.google.android.material.appbar.AppBarLayout android:background="@color/grey_5"
android:id="@+id/appbar_main"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
app:elevation="0.0dip" tools:ignore="MissingConstraints">
<androidx.appcompat.widget.Toolbar android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
android:id="@+id/toolbar" android:layout_width="fill_parent"
android:layout_height="?actionBarSize"
app:title="My Wallet"
app:titleTextColor="@color/colorPrimary"
app:contentInsetStartWithNavigation="0.0dip"
app:popupTheme="@style/ThemeOverlay.AppCompat.Light"
app:theme="@style/Toolbar.Light"/>
</com.google.android.material.appbar.AppBarLayout>
<fragment android:layout_width="match_parent" android:layout_height="0dp"
android:name="androidx.navigation.fragment.NavHostFragment"
app:navGraph="@navigation/nav_graph"
app:defaultNavHost="true"
tools:ignore="MissingConstraints"
app:layout_constraintBottom_toTopOf="@+id/bottom_nav"
android:id="@+id/main_fragment"
app:layout_constraintTop_toBottomOf="@+id/appbar_main">
</fragment>
<com.google.android.material.bottomnavigation.BottomNavigationView android:layout_width="match_parent"
app:elevation="3dp"
android:id="@+id/bottom_nav"
app:menu="@menu/nav_menu"
android:layout_height="wrap_content"
android:background="@color/white_transparency" tools:ignore="MissingConstraints"
android:layout_marginBottom="4dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent">
</com.google.android.material.bottomnavigation.BottomNavigationView>
</androidx.constraintlayout.widget.ConstraintLayout>
</layout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment