Advertisement
chayanforyou

Popup Dialog

Apr 22nd, 2019
340
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.96 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:id="@+id/main_content"
  6.    android:layout_width="match_parent"
  7.    android:layout_height="match_parent"
  8.    android:background="@android:color/white">
  9.  
  10.     <android.support.design.widget.AppBarLayout
  11.        android:id="@+id/appbar"
  12.        android:layout_width="match_parent"
  13.        android:layout_height="250dp"
  14.        android:fitsSystemWindows="true"
  15.        app:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">
  16.  
  17.             <android.support.v7.widget.Toolbar
  18.                android:id="@+id/toolbar"
  19.                android:layout_width="match_parent"
  20.                android:layout_height="?attr/actionBarSize"
  21.                app:layout_collapseMode="pin"
  22.                app:popupTheme="@style/AppTheme.AppBarOverlay" />
  23.  
  24.     </android.support.design.widget.AppBarLayout>
  25.  
  26.     <RelativeLayout
  27.        android:layout_width="match_parent"
  28.        android:layout_height="match_parent"
  29.        android:background="@color/viewBg"
  30.        android:padding="3dp"
  31.        app:layout_behavior="@string/appbar_scrolling_view_behavior">
  32.  
  33.         <android.support.v7.widget.RecyclerView
  34.            android:id="@+id/recycler_view"
  35.            android:layout_width="match_parent"
  36.            android:layout_height="wrap_content"
  37.            android:clipToPadding="false" />
  38.  
  39.     </RelativeLayout>
  40.  
  41.  
  42.     <android.support.design.widget.FloatingActionButton
  43.        android:id="@+id/fab"
  44.        android:layout_width="wrap_content"
  45.        android:layout_height="wrap_content"
  46.        android:layout_gravity="bottom|end"
  47.        android:layout_margin="@dimen/fab_margin"
  48.        app:fabSize="mini"
  49.        app:srcCompat="@drawable/ic_edit" />
  50.  
  51. </android.support.design.widget.CoordinatorLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement