Skip to content

Instantly share code, notes, and snippets.

@Velmm
Created December 26, 2017 18:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Velmm/073edad90f5856353a83a1e5e2037561 to your computer and use it in GitHub Desktop.
Save Velmm/073edad90f5856353a83a1e5e2037561 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout 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"
tools:context="com.example.velmurugan.bottomnativation.MainActivity">
<FrameLayout
android:id="@+id/frame_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior">
<android.support.design.widget.BottomNavigationView
android:id="@+id/bottom_navigationview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:itemBackground="@color/bgBottomNavigation"
android:foreground="?android:attr/selectableItemBackground"
app:itemTextColor="@drawable/nav_item_color"
app:itemIconTint="@drawable/nav_item_color"
app:menu="@menu/navigation_menu"
android:layout_gravity="bottom">
</android.support.design.widget.BottomNavigationView>
</FrameLayout>
</android.support.constraint.ConstraintLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment