Advertisement
Guest User

activity_main

a guest
Apr 19th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.08 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <android.support.design.widget.CoordinatorLayout
  3.    xmlns:android="http://schemas.android.com/apk/res/android"
  4.    xmlns:app="http://schemas.android.com/apk/res-auto"
  5.    android:layout_width="match_parent"
  6.    android:layout_height="match_parent"
  7.    android:background="@android:color/background_light">
  8.  
  9.     <android.support.design.widget.AppBarLayout
  10.        android:layout_width="match_parent"
  11.        android:layout_height="wrap_content">
  12.  
  13.         <android.support.v7.widget.Toolbar
  14.            android:id="@+id/toolbar"
  15.            android:layout_width="match_parent"
  16.            android:layout_height="?attr/actionBarSize"
  17.            android:background="@color/colorPrimary"
  18.            app:layout_scrollFlags="scroll|enterAlways|snap"
  19.            app:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">
  20.  
  21.             <com.miguelcatalan.materialsearchview.MaterialSearchView
  22.                android:id="@+id/search_view"
  23.                android:layout_width="match_parent"
  24.                android:layout_height="match_parent"
  25.                android:foregroundGravity="center_vertical"
  26.                android:textColor="@color/colorAccent"
  27.                android:textColorHint="@color/colorAccent"
  28.                android:visibility="gone"
  29.                app:searchBackIcon="@drawable/ic_action_navigation_arrow_back_inverted"
  30.                app:searchBackground="@color/colorPrimary"
  31.                app:searchCloseIcon="@drawable/ic_action_navigation_close_inverted" />
  32.  
  33.         </android.support.v7.widget.Toolbar>
  34.  
  35.     </android.support.design.widget.AppBarLayout>
  36.  
  37.     <LinearLayout
  38.        android:id="@+id/content"
  39.        android:layout_width="match_parent"
  40.        android:layout_height="match_parent"
  41.        android:orientation="vertical"
  42.        android:paddingBottom="50dp" />
  43.  
  44.     <LinearLayout
  45.        android:layout_width="match_parent"
  46.        android:layout_height="wrap_content"
  47.        android:orientation="vertical"
  48.        android:layout_gravity="bottom">
  49.  
  50.         <android.support.design.widget.CoordinatorLayout
  51.            android:id="@+id/snackbar_container"
  52.            android:layout_width="match_parent"
  53.            android:layout_height="0dp"
  54.            android:layout_weight="1">
  55.  
  56.             <View
  57.                android:id="@+id/elevation_for_bottom_navigation"
  58.                android:layout_width="match_parent"
  59.                android:layout_height="4dp"
  60.                android:background="@drawable/elevation"/>
  61.  
  62.         </android.support.design.widget.CoordinatorLayout>
  63.  
  64.         <com.ittianyu.bottomnavigationviewex.BottomNavigationViewEx
  65.            android:id="@+id/navigation"
  66.            android:layout_width="match_parent"
  67.            android:layout_height="50dp"
  68.            android:layout_gravity="bottom"
  69.            android:background="@color/colorAccent"
  70.            app:itemBackground="@color/colorAccent"
  71.            app:itemIconTint="@drawable/nav_item_state"
  72.            app:menu="@menu/navigation" />
  73.  
  74.     </LinearLayout>
  75.  
  76. </android.support.design.widget.CoordinatorLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement