joris

Layout

Jun 24th, 2016
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.84 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.    xmlns:app="http://schemas.android.com/apk/res-auto"
  4.    xmlns:tools="http://schemas.android.com/tools"
  5.    android:layout_width="match_parent"
  6.    android:layout_height="match_parent"
  7.    android:fitsSystemWindows="true"
  8.    tools:context="com.transvision.bertho.transvisiondashboardapp.MainActivity">
  9.  
  10.     <android.support.design.widget.AppBarLayout
  11.        android:layout_width="match_parent"
  12.        android:layout_height="wrap_content"
  13.        android:theme="@style/AppTheme.AppBarOverlay">
  14.  
  15.         <android.support.v7.widget.Toolbar
  16.            android:id="@+id/toolbar"
  17.            android:layout_width="match_parent"
  18.            android:layout_height="?attr/actionBarSize"
  19.            android:background="?attr/colorPrimary"
  20.            app:popupTheme="@style/AppTheme.PopupOverlay" />
  21.  
  22.     </android.support.design.widget.AppBarLayout>
  23.  
  24.     <FrameLayout
  25.        android:id="@+id/root"
  26.        android:layout_width="match_parent"
  27.        android:layout_height="match_parent" >
  28.  
  29.         <android.support.v7.widget.RecyclerView
  30.            android:id="@+id/movies_recycler_view"
  31.            android:layout_width="match_parent"
  32.            android:layout_height="match_parent"
  33.            android:scrollbars="vertical"
  34.            android:layout_gravity="center_horizontal|bottom" />
  35.  
  36.     </FrameLayout>
  37.  
  38.     <android.support.design.widget.FloatingActionButton
  39.        android:id="@+id/fab"
  40.        android:layout_width="wrap_content"
  41.        android:layout_height="wrap_content"
  42.        android:layout_gravity="bottom|end"
  43.        android:layout_margin="@dimen/fab_margin"
  44.        android:src="@android:drawable/ic_dialog_email" />
  45.  
  46. </android.support.design.widget.CoordinatorLayout>
Advertisement
Add Comment
Please, Sign In to add comment