Hasbi_Assidiqqi

Tugas2-Muhammad Hasbi Assidiqqi

Mar 21st, 2021
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.21 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <ScrollView 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:scrollbars="none"
  8. app:layout_behavior="@string/appbar_scrolling_view_behavior"
  9. tools:context=".MainActivity">
  10.  
  11. <LinearLayout
  12. android:layout_width="match_parent"
  13. android:layout_height="wrap_content"
  14. android:orientation="vertical">
  15.  
  16. <LinearLayout
  17. android:layout_width="match_parent"
  18. android:layout_height="200dp"
  19. android:background="@drawable/img_top"
  20. android:orientation="vertical">
  21.  
  22. <com.google.android.material.appbar.AppBarLayout
  23. android:layout_width="match_parent"
  24. android:layout_height="wrap_content"
  25. android:background="@android:color/transparent">
  26.  
  27. <com.google.android.material.appbar.MaterialToolbar
  28. android:layout_width="match_parent"
  29. android:layout_height="?attr/actionBarSize"
  30. app:menu="@menu/menu"
  31. app:navigationIcon="@drawable/ic_back" />
  32.  
  33. </com.google.android.material.appbar.AppBarLayout>
  34.  
  35. <TextView
  36. android:layout_width="wrap_content"
  37. android:layout_height="wrap_content"
  38. android:layout_marginStart="24dp"
  39. android:layout_marginTop="4dp"
  40. android:text="@string/register"
  41. android:textColor="@color/white"
  42. android:textSize="32sp"
  43. android:textStyle="bold" />
  44.  
  45. <TextView
  46. android:layout_width="wrap_content"
  47. android:layout_height="wrap_content"
  48. android:layout_marginStart="24dp"
  49. android:text="@string/second_slogan"
  50. android:textColor="@color/white" />
  51.  
  52. </LinearLayout>
  53.  
  54. <RelativeLayout
  55. android:layout_width="match_parent"
  56. android:layout_height="wrap_content"
  57. android:layout_marginTop="@dimen/margin"
  58. android:gravity="center">
  59.  
  60. <de.hdodenhof.circleimageview.CircleImageView
  61. android:id="@+id/img_avatar"
  62. android:layout_width="150dp"
  63. android:layout_height="150dp"
  64. android:scaleType="centerCrop"
  65. android:src="@drawable/img_avatar" />
  66.  
  67. <Button
  68. android:id="@+id/btn_add_avatar"
  69. android:layout_width="50dp"
  70. android:layout_height="50dp"
  71. android:layout_alignParentBottom="true"
  72. android:layout_marginStart="-25dp"
  73. android:layout_toEndOf="@+id/img_avatar"
  74. android:background="@drawable/ic_add" />
  75.  
  76.  
  77. </RelativeLayout>
  78.  
  79. <com.google.android.material.textfield.TextInputLayout
  80. style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
  81. android:layout_width="match_parent"
  82. android:layout_height="wrap_content"
  83. android:layout_marginStart="@dimen/margin"
  84. android:layout_marginTop="12dp"
  85. android:layout_marginEnd="@dimen/margin"
  86. android:textColorHint="@color/black"
  87. app:boxCornerRadiusBottomEnd="@dimen/roundedBox"
  88. app:boxCornerRadiusBottomStart="@dimen/roundedBox"
  89. app:boxCornerRadiusTopEnd="@dimen/roundedBox"
  90. app:boxCornerRadiusTopStart="@dimen/roundedBox"
  91. app:endIconMode="clear_text"
  92. app:startIconDrawable="@drawable/ic_username"
  93. app:startIconTint="@color/black">
  94.  
  95. <com.google.android.material.textfield.TextInputEditText
  96. android:id="@+id/edt_username"
  97. android:layout_width="match_parent"
  98. android:layout_height="wrap_content"
  99. android:ellipsize="end"
  100. android:hint="@string/username"
  101. android:inputType="text"
  102. android:maxLines="1" />
  103.  
  104. </com.google.android.material.textfield.TextInputLayout>
  105.  
  106. <com.google.android.material.textfield.TextInputLayout
  107. style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
  108. android:layout_width="match_parent"
  109. android:layout_height="wrap_content"
  110. android:layout_marginStart="@dimen/margin"
  111. android:layout_marginTop="12dp"
  112. android:layout_marginEnd="@dimen/margin"
  113. android:textColorHint="@color/black"
  114. app:boxCornerRadiusBottomEnd="@dimen/roundedBox"
  115. app:boxCornerRadiusBottomStart="@dimen/roundedBox"
  116. app:boxCornerRadiusTopEnd="@dimen/roundedBox"
  117. app:boxCornerRadiusTopStart="@dimen/roundedBox"
  118. app:endIconMode="clear_text"
  119. app:startIconDrawable="@drawable/ic_email"
  120. app:startIconTint="@color/black">
  121.  
  122. <com.google.android.material.textfield.TextInputEditText
  123. android:id="@+id/edt_email"
  124. android:layout_width="match_parent"
  125. android:layout_height="wrap_content"
  126. android:ellipsize="end"
  127. android:hint="@string/email"
  128. android:inputType="textEmailAddress"
  129. android:maxLines="1" />
  130.  
  131. </com.google.android.material.textfield.TextInputLayout>
  132.  
  133. <com.google.android.material.textfield.TextInputLayout
  134. style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
  135. android:layout_width="match_parent"
  136. android:layout_height="wrap_content"
  137. android:layout_marginStart="@dimen/margin"
  138. android:layout_marginTop="12dp"
  139. android:layout_marginEnd="@dimen/margin"
  140. android:textColorHint="@color/black"
  141. app:boxCornerRadiusBottomEnd="@dimen/roundedBox"
  142. app:boxCornerRadiusBottomStart="@dimen/roundedBox"
  143. app:boxCornerRadiusTopEnd="@dimen/roundedBox"
  144. app:boxCornerRadiusTopStart="@dimen/roundedBox"
  145. app:endIconMode="clear_text"
  146. app:startIconDrawable="@drawable/ic_phone"
  147. app:startIconTint="@color/black">
  148.  
  149. <com.google.android.material.textfield.TextInputEditText
  150. android:id="@+id/edt_phone_number"
  151. android:layout_width="match_parent"
  152. android:layout_height="wrap_content"
  153. android:ellipsize="end"
  154. android:hint="@string/phone_number"
  155. android:inputType="phone"
  156. android:maxLines="1" />
  157.  
  158. </com.google.android.material.textfield.TextInputLayout>
  159.  
  160. <com.google.android.material.textfield.TextInputLayout
  161. style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
  162. android:layout_width="match_parent"
  163. android:layout_height="wrap_content"
  164. android:layout_marginStart="@dimen/margin"
  165. android:layout_marginTop="12dp"
  166. android:layout_marginEnd="@dimen/margin"
  167. android:textColorHint="@color/black"
  168. app:boxCornerRadiusBottomEnd="@dimen/roundedBox"
  169. app:boxCornerRadiusBottomStart="@dimen/roundedBox"
  170. app:boxCornerRadiusTopEnd="@dimen/roundedBox"
  171. app:boxCornerRadiusTopStart="@dimen/roundedBox"
  172. app:passwordToggleEnabled="true"
  173. app:startIconDrawable="@drawable/ic_password"
  174. app:startIconTint="@color/black">
  175.  
  176. <com.google.android.material.textfield.TextInputEditText
  177. android:id="@+id/edt_password"
  178. android:layout_width="match_parent"
  179. android:layout_height="wrap_content"
  180. android:ellipsize="end"
  181. android:hint="@string/password"
  182. android:inputType="textPassword"
  183. android:maxLines="1" />
  184.  
  185. </com.google.android.material.textfield.TextInputLayout>
  186.  
  187. <com.google.android.material.textfield.TextInputLayout
  188. style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
  189. android:layout_width="match_parent"
  190. android:layout_height="wrap_content"
  191. android:layout_marginStart="@dimen/margin"
  192. android:layout_marginTop="12dp"
  193. android:layout_marginEnd="@dimen/margin"
  194. android:textColorHint="@color/black"
  195. app:boxCornerRadiusBottomEnd="@dimen/roundedBox"
  196. app:boxCornerRadiusBottomStart="@dimen/roundedBox"
  197. app:boxCornerRadiusTopEnd="@dimen/roundedBox"
  198. app:boxCornerRadiusTopStart="@dimen/roundedBox"
  199. app:passwordToggleEnabled="true"
  200. app:startIconDrawable="@drawable/ic_password"
  201. app:startIconTint="@color/black">
  202.  
  203. <com.google.android.material.textfield.TextInputEditText
  204. android:id="@+id/edt_confirm_password"
  205. android:layout_width="match_parent"
  206. android:layout_height="wrap_content"
  207. android:ellipsize="end"
  208. android:hint="@string/confirm_password"
  209. android:inputType="textPassword"
  210. android:maxLines="1" />
  211.  
  212. </com.google.android.material.textfield.TextInputLayout>
  213.  
  214. <RadioGroup
  215. android:layout_width="match_parent"
  216. android:layout_height="wrap_content"
  217. android:layout_marginTop="12dp"
  218. android:gravity="center"
  219. android:orientation="horizontal">
  220.  
  221. <RadioButton
  222. android:id="@+id/rb_male"
  223. android:layout_width="wrap_content"
  224. android:layout_height="wrap_content"
  225. android:text="@string/male" />
  226.  
  227. <RadioButton
  228. android:id="@+id/rb_female"
  229. android:layout_width="wrap_content"
  230. android:layout_height="wrap_content"
  231. android:layout_marginStart="24dp"
  232. android:text="@string/female" />
  233.  
  234. </RadioGroup>
  235.  
  236. <Button
  237. android:id="@+id/btn_sign_up"
  238. android:layout_width="match_parent"
  239. android:layout_height="50dp"
  240. android:layout_marginStart="@dimen/margin"
  241. android:layout_marginTop="@dimen/margin"
  242. android:layout_marginEnd="@dimen/margin"
  243. android:background="@drawable/rounded_button"
  244. android:text="@string/sign_up"
  245. android:textSize="22sp"
  246. android:textStyle="bold" />
  247.  
  248. <LinearLayout
  249. android:layout_width="match_parent"
  250. android:layout_height="wrap_content"
  251. android:layout_marginTop="8dp"
  252. android:gravity="center"
  253. android:orientation="horizontal">
  254.  
  255. <TextView
  256. android:layout_width="wrap_content"
  257. android:layout_height="wrap_content"
  258. android:text="@string/already_have_an_account"
  259. android:textSize="16sp" />
  260.  
  261. <TextView
  262. android:id="@+id/tv_sign_in"
  263. android:layout_width="wrap_content"
  264. android:layout_height="wrap_content"
  265. android:layout_marginStart="2dp"
  266. android:text="@string/sign_in"
  267. android:textColor="@color/purple_200"
  268. android:textSize="16sp"
  269. android:textStyle="bold" />
  270.  
  271. </LinearLayout>
  272.  
  273. <LinearLayout
  274. android:layout_width="match_parent"
  275. android:layout_height="wrap_content"
  276. android:layout_marginStart="@dimen/margin"
  277. android:layout_marginTop="44dp"
  278. android:layout_marginEnd="@dimen/margin"
  279. android:gravity="center"
  280. android:orientation="horizontal">
  281.  
  282. <View
  283. android:layout_width="wrap_content"
  284. android:layout_height="1dp"
  285. android:layout_weight="1"
  286. android:background="#BBBBBB" />
  287.  
  288. <TextView
  289. android:layout_width="wrap_content"
  290. android:layout_height="wrap_content"
  291. android:layout_gravity="center"
  292. android:layout_marginStart="4dp"
  293. android:layout_marginEnd="4dp"
  294. android:text="@string/or_sign_up_with"
  295. android:textSize="16sp" />
  296.  
  297. <View
  298. android:layout_width="wrap_content"
  299. android:layout_height="1dp"
  300. android:layout_weight="1"
  301. android:background="#BBBBBB" />
  302.  
  303. </LinearLayout>
  304.  
  305. <LinearLayout
  306. android:layout_width="match_parent"
  307. android:layout_height="wrap_content"
  308. android:layout_marginTop="8dp"
  309. android:layout_marginBottom="44dp"
  310. android:gravity="center"
  311. android:orientation="horizontal">
  312.  
  313. <ImageButton
  314. android:id="@+id/btn_google"
  315. android:layout_width="40dp"
  316. android:layout_height="40dp"
  317. android:layout_marginEnd="12dp"
  318. android:background="@drawable/ic_google"
  319. android:contentDescription="@string/desc_image" />
  320.  
  321. <ImageButton
  322. android:id="@+id/btn_fb"
  323. android:layout_width="40dp"
  324. android:layout_height="40dp"
  325. android:layout_marginStart="12dp"
  326. android:layout_marginEnd="12dp"
  327. android:background="@drawable/ic_facebook"
  328. android:contentDescription="@string/desc_image" />
  329.  
  330. <ImageButton
  331. android:id="@+id/btn_twitter"
  332. android:layout_width="40dp"
  333. android:layout_height="40dp"
  334. android:layout_marginStart="12dp"
  335. android:background="@drawable/ic_twitter"
  336. android:contentDescription="@string/desc_image" />
  337.  
  338. </LinearLayout>
  339.  
  340. </LinearLayout>
  341.  
  342. </ScrollView>
Advertisement
Add Comment
Please, Sign In to add comment