Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?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"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="@android:color/background_light">
- <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="?attr/actionBarSize"
- android:background="@color/colorPrimary"
- app:layout_scrollFlags="scroll|enterAlways|snap"
- app:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">
- <com.miguelcatalan.materialsearchview.MaterialSearchView
- android:id="@+id/search_view"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:foregroundGravity="center_vertical"
- android:textColor="@color/colorAccent"
- android:textColorHint="@color/colorAccent"
- android:visibility="gone"
- app:searchBackIcon="@drawable/ic_action_navigation_arrow_back_inverted"
- app:searchBackground="@color/colorPrimary"
- app:searchCloseIcon="@drawable/ic_action_navigation_close_inverted" />
- </android.support.v7.widget.Toolbar>
- </android.support.design.widget.AppBarLayout>
- <LinearLayout
- android:id="@+id/content"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical"
- android:paddingBottom="50dp" />
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical"
- android:layout_gravity="bottom">
- <android.support.design.widget.CoordinatorLayout
- android:id="@+id/snackbar_container"
- android:layout_width="match_parent"
- android:layout_height="0dp"
- android:layout_weight="1">
- <View
- android:id="@+id/elevation_for_bottom_navigation"
- android:layout_width="match_parent"
- android:layout_height="4dp"
- android:background="@drawable/elevation"/>
- </android.support.design.widget.CoordinatorLayout>
- <com.ittianyu.bottomnavigationviewex.BottomNavigationViewEx
- android:id="@+id/navigation"
- android:layout_width="match_parent"
- android:layout_height="50dp"
- android:layout_gravity="bottom"
- android:background="@color/colorAccent"
- app:itemBackground="@color/colorAccent"
- app:itemIconTint="@drawable/nav_item_state"
- app:menu="@menu/navigation" />
- </LinearLayout>
- </android.support.design.widget.CoordinatorLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement