Skip to content

Instantly share code, notes, and snippets.

@khle
Forked from ValCanBuild/BottomNavLayout.xml
Created January 4, 2019 04:11
Show Gist options
  • Save khle/249ebadf03d9144b632561bd182fc48c to your computer and use it in GitHub Desktop.
Save khle/249ebadf03d9144b632561bd182fc48c to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<android.support.design.widget.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/ToolbarOverlayTheme"
app:layout_scrollFlags="scroll|enterAlways"
app:title="Tab one"/>
</android.support.design.widget.AppBarLayout>
<android.support.v7.widget.RecyclerView
android:id="@+id/itemList"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#c2c2c2"
app:layoutManager="android.support.v7.widget.LinearLayoutManager"
app:layout_behavior="@string/appbar_scrolling_view_behavior"/>
<android.support.design.widget.BottomNavigationView
android:id="@+id/navigation"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:background="#FFFFFF"
app:layout_behavior="com.bottomnav.example.BottomNavigationBehavior"
app:menu="@menu/my_menu"/>
</android.support.design.widget.CoordinatorLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment