Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.26 KB | None | 0 0
  1. <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2. xmlns:app="http://schemas.android.com/apk/res-auto"
  3. android:layout_width="match_parent"
  4. android:layout_height="match_parent">
  5.  
  6. <android.support.design.widget.FloatingActionButton
  7. android:id="@+id/fab"
  8. android:layout_width="wrap_content"
  9. android:layout_height="wrap_content"
  10. android:layout_gravity="bottom|end"
  11. android:layout_margin="16dp"
  12. android:clickable="true"
  13. android:src="@drawable/ic_add"
  14. app:layout_anchorGravity="bottom|right|end" />
  15.  
  16. <android.support.design.widget.AppBarLayout
  17. android:layout_width="match_parent"
  18. android:layout_height="wrap_content"
  19. android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">
  20.  
  21. <android.support.v7.widget.Toolbar
  22. android:id="@+id/toolbar"
  23. android:layout_width="match_parent"
  24. android:layout_height="?attr/actionBarSize"
  25. android:background="?attr/colorPrimary"
  26. app:layout_scrollFlags="snap"
  27. app:popupTheme="@style/ThemeOverlay.AppCompat.Light" />
  28.  
  29. </android.support.design.widget.AppBarLayout>
  30.  
  31. <RelativeLayout
  32. android:layout_width="match_parent"
  33. android:layout_height="match_parent"
  34. android:layout_marginTop="?attr/actionBarSize"
  35. android:orientation="vertical">
  36.  
  37. <android.support.v7.widget.RecyclerView
  38. android:id="@+id/recycler_view_cards"
  39. android:layout_width="match_parent"
  40. android:layout_height="match_parent"
  41. android:scrollbars="none"
  42. app:layout_behavior="@string/appbar_scrolling_view_behavior" />
  43.  
  44. <TextView
  45. android:id="@+id/text_view_no_cards"
  46. android:layout_width="wrap_content"
  47. android:layout_height="wrap_content"
  48. android:layout_centerInParent="true"
  49. android:lines="1"
  50. android:text="@string/text_view_no_cards"
  51. android:textAppearance="@style/Base.TextAppearance.AppCompat.Large"
  52. android:textColor="@color/color_text" />
  53.  
  54. </RelativeLayout>
  55.  
  56.  
  57.  
  58. </android.support.design.widget.CoordinatorLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement