Guest User

Untitled

a guest
Feb 16th, 2019
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.20 KB | None | 0 0
  1. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2. xmlns:app="http://schemas.android.com/apk/res-auto"
  3. xmlns:tools="http://schemas.android.com/tools"
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent"
  6. android:layout_marginLeft="16dp"
  7. android:layout_marginRight="16dp"
  8. android:baselineAligned="false"
  9. android:divider="?android:attr/dividerHorizontal"
  10. android:orientation="horizontal"
  11. android:showDividers="middle"
  12. tools:context=".ItemListActivity">
  13.  
  14. <!-- This layout is a two-pane layout for the Items master/detail flow.-->
  15.  
  16. <RelativeLayout
  17. android:layout_width="match_parent"
  18. android:layout_height="match_parent">
  19.  
  20. <android.support.v7.widget.RecyclerView xmlns:android="http://schemas.android.com/apk/res/android"
  21. xmlns:tools="http://schemas.android.com/tools"
  22. android:id="@+id/item_list"
  23. android:name=".ItemListFragment"
  24. android:layout_width="@dimen/item_width"
  25. android:layout_height="match_parent"
  26. android:layout_marginLeft="16dp"
  27. android:layout_marginRight="16dp"
  28. app:layoutManager="LinearLayoutManager"
  29. tools:context=".ItemListActivity"
  30. tools:listitem="@layout/item_list_content" />
  31.  
  32. <android.support.design.widget.FloatingActionButton
  33. android:id="@+id/fab"
  34. android:layout_width="wrap_content"
  35. android:layout_height="wrap_content"
  36. android:layout_gravity="bottom|end"
  37. android:layout_margin="@dimen/fab_margin"
  38. android:layout_alignParentRight="true"
  39. android:layout_alignParentBottom="true"
  40. android:src="@android:drawable/ic_dialog_email" />
  41. </RelativeLayout>
  42.  
  43. <FrameLayout
  44. android:id="@+id/item_detail_container"
  45. android:layout_width="0dp"
  46. android:layout_height="match_parent"
  47. android:layout_weight="3" />
  48.  
  49. </LinearLayout>
  50.  
  51. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  52. xmlns:app="http://schemas.android.com/apk/res-auto"
  53. xmlns:tools="http://schemas.android.com/tools"
  54. android:layout_width="match_parent"
  55. android:layout_height="match_parent"
  56. android:layout_marginLeft="16dp"
  57. android:layout_marginRight="16dp"
  58. android:baselineAligned="false"
  59. android:divider="?android:attr/dividerHorizontal"
  60. android:orientation="horizontal"
  61. android:showDividers="middle"
  62. tools:context=".ItemListActivity">
  63.  
  64. <!--This layout is a two-pane layout for the Items master/detail flow.-->
  65. <RelativeLayout
  66. android:layout_width="wrap_content"
  67. android:layout_height="match_parent">
  68.  
  69. <RelativeLayout
  70. android:layout_width="wrap_content"
  71. android:layout_height="match_parent"
  72. android:id="@+id/item_list_master">
  73.  
  74. <android.support.v7.widget.RecyclerView xmlns:android="http://schemas.android.com/apk/res/android"
  75. xmlns:tools="http://schemas.android.com/tools"
  76. android:id="@+id/item_list"
  77. android:name=".ItemListFragment"
  78. android:layout_width="@dimen/item_width"
  79. android:layout_height="match_parent"
  80. android:layout_marginLeft="16dp"
  81. android:layout_marginRight="16dp"
  82. app:layoutManager="LinearLayoutManager"
  83. tools:context=".ItemListActivity"
  84. tools:listitem="@layout/item_list_content" />
  85.  
  86. <android.support.design.widget.FloatingActionButton
  87. android:id="@+id/fab"
  88. android:layout_width="wrap_content"
  89. android:layout_height="wrap_content"
  90. android:layout_alignParentBottom="true"
  91. android:layout_margin="@dimen/fab_margin"
  92. android:layout_alignRight="@id/item_list"
  93. android:src="@android:drawable/ic_dialog_email" />
  94.  
  95. </RelativeLayout>
  96. <FrameLayout
  97. android:id="@+id/item_detail_container"
  98. android:layout_width="400dp"
  99. android:layout_height="match_parent"
  100. android:layout_toRightOf="@+id/item_list_master"
  101. android:layout_alignParentRight="true"
  102. android:layout_alignParentEnd="true" />
  103.  
  104. </RelativeLayout>
  105. </LinearLayout>
Add Comment
Please, Sign In to add comment