Advertisement
Guest User

Untitled

a guest
Nov 19th, 2019
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.39 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2.  
  3. <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent">
  6.  
  7.  
  8. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  9. android:layout_width="match_parent"
  10. android:layout_height="match_parent"
  11. android:orientation="vertical"
  12. android:padding="8dp">
  13.  
  14. <LinearLayout
  15. android:layout_width="match_parent"
  16. android:layout_height="wrap_content"
  17. android:layout_marginTop="30dp"
  18. android:layout_marginBottom="16dp"
  19. android:orientation="horizontal">
  20.  
  21.  
  22.  
  23. <com.google.android.material.textfield.TextInputLayout
  24. android:layout_width="0dp"
  25. android:layout_height="wrap_content"
  26. android:layout_weight="1">
  27.  
  28. <EditText
  29. android:id="@+id/inputNamaDepan"
  30. android:layout_width="match_parent"
  31. android:layout_height="wrap_content"
  32. android:hint="Nama Depan" />
  33.  
  34.  
  35. </com.google.android.material.textfield.TextInputLayout>
  36.  
  37.  
  38. <com.google.android.material.textfield.TextInputLayout
  39. android:layout_width="0dp"
  40. android:layout_height="wrap_content"
  41. android:layout_weight="1">
  42.  
  43. <EditText
  44. android:id="@+id/inputNamaBelakang"
  45.  
  46. android:layout_width="match_parent"
  47. android:layout_height="wrap_content"
  48. android:hint="Nama Belakang"
  49. />
  50.  
  51. </com.google.android.material.textfield.TextInputLayout>
  52.  
  53. </LinearLayout>
  54.  
  55. <com.google.android.material.textfield.TextInputLayout
  56. android:layout_width="match_parent"
  57. android:layout_height="wrap_content">
  58.  
  59. <EditText
  60. android:id="@+id/inputNoHp"
  61. android:inputType="phone"
  62. android:layout_width="match_parent"
  63. android:layout_height="wrap_content"
  64. android:layout_marginBottom="16dp"
  65. android:hint="No. Hp" />
  66.  
  67. </com.google.android.material.textfield.TextInputLayout>
  68.  
  69. <com.google.android.material.textfield.TextInputLayout
  70. android:layout_width="match_parent"
  71. android:layout_height="wrap_content">
  72.  
  73. <EditText
  74. android:id="@+id/inputEmail"
  75. android:inputType="textEmailAddress"
  76. android:layout_width="match_parent"
  77. android:layout_height="wrap_content"
  78. android:layout_marginBottom="16dp"
  79. android:hint="Email" />
  80.  
  81. </com.google.android.material.textfield.TextInputLayout>
  82. <com.google.android.material.textfield.TextInputLayout
  83. android:layout_width="match_parent"
  84. android:layout_height="wrap_content">
  85.  
  86. <EditText
  87. android:clickable="true"
  88. android:id="@+id/inputTglLahir"
  89. android:focusable="false"
  90. android:inputType="none"
  91. android:layout_width="match_parent"
  92. android:layout_height="wrap_content"
  93. android:layout_marginBottom="16dp"
  94. android:hint="Tanggal Lahir" />
  95.  
  96. </com.google.android.material.textfield.TextInputLayout>
  97.  
  98. <TextView
  99. android:layout_width="wrap_content"
  100. android:layout_height="wrap_content"
  101. android:text="Gender" />
  102.  
  103. <RadioGroup
  104. android:layout_width="match_parent"
  105. android:layout_height="wrap_content"
  106. android:layout_marginBottom="16dp"
  107. android:orientation="horizontal">
  108.  
  109. <RadioButton
  110. android:id="@+id/rbPria"
  111. android:layout_width="wrap_content"
  112. android:layout_height="wrap_content"
  113. android:text="Pria" />
  114.  
  115. <RadioButton
  116. android:id="@+id/rbWanita"
  117. android:layout_width="wrap_content"
  118. android:layout_height="wrap_content"
  119. android:text="Wanita" />
  120.  
  121. </RadioGroup>
  122.  
  123. <TextView
  124. android:layout_width="wrap_content"
  125. android:layout_height="wrap_content"
  126. android:text="Jenjang" />
  127.  
  128. <Spinner
  129. android:id="@+id/spinner"
  130. android:layout_width="match_parent"
  131. android:layout_height="wrap_content"
  132. android:layout_marginBottom="16dp"
  133. android:entries="@array/jenjang" />
  134.  
  135. <TextView
  136. android:layout_width="wrap_content"
  137. android:layout_height="wrap_content"
  138. android:text="Hobi" />
  139.  
  140. <CheckBox
  141. android:id="@+id/cbMenulis"
  142. android:layout_width="wrap_content"
  143. android:layout_height="wrap_content"
  144. android:layout_marginBottom="8dp"
  145. android:text="Menulis" />
  146.  
  147. <CheckBox
  148. android:id="@+id/cbMembaca"
  149.  
  150. android:layout_width="wrap_content"
  151. android:layout_height="wrap_content"
  152. android:layout_marginBottom="8dp"
  153. android:text="Membaca" />
  154.  
  155. <CheckBox
  156. android:id="@+id/cbMenggambar"
  157. android:layout_width="wrap_content"
  158. android:layout_height="wrap_content"
  159.  
  160. android:layout_marginBottom="16dp"
  161. android:text="Menggambar" />
  162.  
  163. <com.google.android.material.textfield.TextInputLayout
  164. android:layout_width="match_parent"
  165. android:layout_height="wrap_content">
  166.  
  167. <EditText
  168. android:id="@+id/inputAlamat"
  169. android:layout_width="match_parent"
  170. android:layout_height="100dp"
  171. android:layout_marginBottom="16dp"
  172. android:hint="Alamat" />
  173.  
  174. </com.google.android.material.textfield.TextInputLayout>
  175.  
  176.  
  177. <Button
  178. android:id="@+id/btnSimpan"
  179. android:layout_width="match_parent"
  180. android:layout_height="wrap_content"
  181. android:drawableLeft="@drawable/ic_save_black_24dp"
  182. android:text="Simpan" />
  183.  
  184. </LinearLayout>
  185.  
  186. </ScrollView>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement