Guest User

Untitled

a guest
Jan 11th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.45 KB | None | 0 0
  1. <android.support.design.widget.CoordinatorLayout
  2. xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. android:id="@+id/main_content"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. >
  8.  
  9. <LinearLayout
  10. android:orientation="vertical"
  11. android:layout_width="match_parent"
  12. android:layout_height="wrap_content">
  13.  
  14. <android.support.v7.widget.Toolbar
  15. android:id="@+id/toolbar"
  16. android:layout_width="match_parent"
  17. android:layout_height="?attr/actionBarSize"
  18. android:theme="@style/AppTheme.ActionBarForTransparentStatusBar"
  19. app:titleTextColor="@color/colorWhite" />
  20.  
  21. <RelativeLayout
  22. android:layout_width="match_parent"
  23. android:layout_height="match_parent"
  24. android:background="@color/colorActivityBackground">
  25.  
  26. <EditText
  27. android:id="@+id/etInput"
  28. android:layout_width="match_parent"
  29. android:layout_height="match_parent"
  30. android:layout_above="@+id/recyclerViewAttachments"
  31. android:gravity="top" />
  32.  
  33. <android.support.v7.widget.RecyclerView
  34. android:id="@+id/recyclerViewAttachments"
  35. android:layout_width="match_parent"
  36. android:layout_height="wrap_content"
  37. android:layout_above="@+id/llAttachmentBar" />
  38.  
  39. <LinearLayout
  40. android:id="@+id/llAttachmentBar"
  41. android:layout_width="match_parent"
  42. android:layout_height="40dp"
  43. android:layout_alignParentBottom="true"
  44. android:orientation="horizontal"
  45. android:weightSum="5">
  46.  
  47. <ImageView
  48. android:id="@+id/ivSmile"
  49. android:layout_width="0dp"
  50. android:layout_height="match_parent"
  51. android:layout_weight="1"
  52. android:src="@drawable/ic_diploma" />
  53.  
  54. <ImageView
  55. android:id="@+id/ivRecipient"
  56. android:layout_width="0dp"
  57. android:layout_height="match_parent"
  58. android:layout_weight="1"
  59. android:src="@drawable/ic_diploma" />
  60.  
  61. <ImageView
  62. android:id="@+id/ivCamera"
  63. android:layout_width="0dp"
  64. android:layout_height="match_parent"
  65. android:layout_weight="1"
  66. android:src="@drawable/ic_diploma" />
  67.  
  68. <ImageView
  69. android:id="@+id/ivAttachment"
  70. android:layout_width="0dp"
  71. android:layout_height="match_parent"
  72. android:layout_weight="1"
  73. android:src="@drawable/ic_diploma" />
  74.  
  75. <LinearLayout
  76. android:layout_width="0dp"
  77. android:layout_height="match_parent"
  78. android:layout_weight="1"
  79. android:orientation="horizontal">
  80.  
  81. <View
  82. android:layout_width="1dp"
  83. android:layout_height="match_parent"
  84. android:layout_marginBottom="@dimen/default_margin_8dp"
  85. android:layout_marginTop="@dimen/default_margin_8dp"
  86. android:background="@color/colorLabel" />
  87.  
  88. <ImageView
  89. android:id="@+id/ivSend"
  90. android:layout_width="0dp"
  91. android:layout_height="match_parent"
  92. android:layout_weight="1"
  93. android:src="@drawable/ic_diploma" />
  94.  
  95. </LinearLayout>
  96. </LinearLayout>
  97. </RelativeLayout>
  98. </LinearLayout>
  99.  
  100.  
  101. <android.support.v4.widget.NestedScrollView
  102. android:id="@+id/bottomSheet"
  103. android:layout_width="match_parent"
  104. android:layout_height="350dp"
  105. android:clipToPadding="true"
  106. android:background="@android:color/holo_orange_light"
  107. app:layout_behavior="android.support.design.widget.BottomSheetBehavior"
  108. >
  109.  
  110. <TextView
  111. android:layout_width="match_parent"
  112. android:layout_height="match_parent"
  113. android:text="Some text"
  114. android:padding="16dp"
  115. android:textSize="16sp"/>
  116.  
  117. </android.support.v4.widget.NestedScrollView>
  118.  
  119. </android.support.design.widget.CoordinatorLayout>
  120.  
  121. @Override
  122. protected void onCreate(@Nullable Bundle savedInstanceState) {
  123. super.onCreate(savedInstanceState);
  124.  
  125. setContentView(R.layout.activity_create_post);
  126.  
  127. ((ViewGroup)bottomSheet.getParent()).removeView(bottomSheet);
  128. bottomSheetDialog = new BottomSheetDialog(this);
  129. bottomSheetDialog.setContentView(bottomSheet);
  130. }
  131.  
  132. <android.support.design.widget.CoordinatorLayout
  133. xmlns:android="http://schemas.android.com/apk/res/android"
  134. xmlns:app="http://schemas.android.com/apk/res-auto"
  135. android:id="@+id/main_content"
  136. android:layout_width="match_parent"
  137. android:layout_height="match_parent"
  138. >
  139.  
  140. <LinearLayout
  141. android:orientation="vertical"
  142. android:layout_width="match_parent"
  143. android:layout_height="wrap_content">
  144.  
  145. <android.support.v7.widget.Toolbar
  146. android:id="@+id/toolbar"
  147. android:layout_width="match_parent"
  148. android:layout_height="?attr/actionBarSize"
  149. android:theme="@style/AppTheme.ActionBarForTransparentStatusBar"
  150. app:titleTextColor="@color/colorWhite" />
  151.  
  152. <RelativeLayout
  153. android:layout_width="match_parent"
  154. android:layout_height="match_parent"
  155. android:background="@color/colorActivityBackground">
  156.  
  157. <EditText
  158. android:id="@+id/etInput"
  159. android:layout_width="match_parent"
  160. android:layout_height="match_parent"
  161. android:layout_above="@+id/recyclerViewAttachments"
  162. android:gravity="top" />
  163.  
  164. <android.support.v7.widget.RecyclerView
  165. android:id="@+id/recyclerViewAttachments"
  166. android:layout_width="match_parent"
  167. android:layout_height="wrap_content"
  168. android:layout_above="@+id/llAttachmentBar" />
  169.  
  170. <LinearLayout
  171. android:id="@+id/llAttachmentBar"
  172. android:layout_width="match_parent"
  173. android:layout_height="40dp"
  174. android:layout_alignParentBottom="true"
  175. android:orientation="horizontal"
  176. android:weightSum="5">
  177.  
  178. <ImageView
  179. android:id="@+id/ivSmile"
  180. android:layout_width="0dp"
  181. android:layout_height="match_parent"
  182. android:layout_weight="1"
  183. android:src="@drawable/ic_diploma" />
  184.  
  185. <ImageView
  186. android:id="@+id/ivRecipient"
  187. android:layout_width="0dp"
  188. android:layout_height="match_parent"
  189. android:layout_weight="1"
  190. android:src="@drawable/ic_diploma" />
  191.  
  192. <ImageView
  193. android:id="@+id/ivCamera"
  194. android:layout_width="0dp"
  195. android:layout_height="match_parent"
  196. android:layout_weight="1"
  197. android:src="@drawable/ic_diploma" />
  198.  
  199. <ImageView
  200. android:id="@+id/ivAttachment"
  201. android:layout_width="0dp"
  202. android:layout_height="match_parent"
  203. android:layout_weight="1"
  204. android:src="@drawable/ic_diploma" />
  205.  
  206. <LinearLayout
  207. android:layout_width="0dp"
  208. android:layout_height="match_parent"
  209. android:layout_weight="1"
  210. android:orientation="horizontal">
  211.  
  212. <View
  213. android:layout_width="1dp"
  214. android:layout_height="match_parent"
  215. android:layout_marginBottom="@dimen/default_margin_8dp"
  216. android:layout_marginTop="@dimen/default_margin_8dp"
  217. android:background="@color/colorLabel" />
  218.  
  219. <ImageView
  220. android:id="@+id/ivSend"
  221. android:layout_width="0dp"
  222. android:layout_height="match_parent"
  223. android:layout_weight="1"
  224. android:src="@drawable/ic_diploma" />
  225.  
  226. </LinearLayout>
  227. </LinearLayout>
  228. </RelativeLayout>
  229. </LinearLayout>
  230.  
  231.  
  232.  
  233.  
  234.  
  235. <android.support.v4.widget.NestedScrollView
  236. android:id="@+id/bottomSheet"
  237. android:layout_width="match_parent"
  238. android:layout_height="350dp"
  239. android:clipToPadding="true"
  240. android:background="@color/colorBottomSheerBackground"
  241. app:layout_behavior="android.support.design.widget.BottomSheetBehavior"
  242. >
  243.  
  244. <LinearLayout
  245. android:id="@+id/llAddMyPhoto"
  246. android:layout_width="match_parent"
  247. android:layout_height="48dp">
  248. <ImageView
  249. android:layout_width="24dp"
  250. android:layout_height="24dp"
  251. android:background="@color/colorBlack"/>
  252. <TextView
  253. android:layout_width="match_parent"
  254. android:layout_height="match_parent"
  255. android:textSize="@dimen/text_size_default"
  256. android:gravity="center_vertical"
  257. android:hint="@string/label_no_info_hint_text"
  258. />
  259. </LinearLayout>
  260.  
  261. </android.support.v4.widget.NestedScrollView>
  262.  
  263. </android.support.design.widget.CoordinatorLayout>
Add Comment
Please, Sign In to add comment