Advertisement
Guest User

Untitled

a guest
Jan 20th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.09 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout
  3.    android:id="@+id/activity_main"
  4.    xmlns:android="http://schemas.android.com/apk/res/android"
  5.    xmlns:app="http://schemas.android.com/apk/res-auto"
  6.    xmlns:tools="http://schemas.android.com/tools"
  7.    android:layout_width="match_parent"
  8.    android:layout_height="match_parent"
  9.    android:orientation="vertical">
  10.     <android.support.design.widget.AppBarLayout
  11.        android:id="@+id/appBar"
  12.        android:layout_width="match_parent"
  13.        android:layout_height="wrap_content"
  14.        android:background="@color/colorAccent"
  15.        android:minHeight="?attr/actionBarSize">
  16.     <android.support.v7.widget.Toolbar
  17.        android:id="@+id/toolbar_main"
  18.        android:layout_width="match_parent"
  19.        android:layout_height="wrap_content"
  20.        android:background="@color/white"
  21.        android:minHeight="?attr/actionBarSize"
  22.        app:theme="@style/AppTheme">
  23.         <ImageView
  24.            android:id="@+id/toolbar_title"
  25.            android:layout_width="100dp"
  26.            android:layout_height="40dp"
  27.            style="@style/TextAppearance.Widget.AppCompat.Toolbar.Title"
  28.            android:src="@drawable/tittle"
  29.            android:layout_gravity="center"/>
  30.  
  31.     </android.support.v7.widget.Toolbar>
  32.     </android.support.design.widget.AppBarLayout>
  33.  
  34.     <FrameLayout
  35.        android:layout_below="@+id/appBar"
  36.        android:id="@+id/frame_layout"
  37.        android:layout_width="match_parent"
  38.        android:layout_height="match_parent"
  39.        android:layout_above="@+id/navigation"
  40.        android:animateLayoutChanges="true">
  41.  
  42.     </FrameLayout>
  43.  
  44.     <android.support.design.widget.BottomNavigationView
  45.        android:id="@+id/navigation"
  46.        android:layout_width="match_parent"
  47.        android:layout_height="wrap_content"
  48.        android:layout_alignParentBottom="true"
  49.        android:background="#ffffff"
  50.        app:itemIconTint="@color/nav_item_state_list"
  51.        app:itemTextColor="@color/nav_item_state_list"
  52.        app:menu="@menu/bottom_navigation_items"/>
  53. </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement