Advertisement
wildanfuady

Untitled

Jan 27th, 2020
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.70 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="match_parent"
  4. android:layout_height="match_parent">
  5.  
  6. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  7. xmlns:app="http://schemas.android.com/apk/res-auto"
  8. xmlns:tools="http://schemas.android.com/tools"
  9. android:layout_width="match_parent"
  10. android:layout_height="match_parent"
  11. android:orientation="vertical"
  12. android:padding="8dp"
  13. tools:context=".FormActivity">
  14.  
  15.  
  16. <LinearLayout
  17. android:layout_width="match_parent"
  18. android:layout_height="wrap_content"
  19. android:layout_marginBottom="8dp"
  20. android:orientation="horizontal">
  21.  
  22. <EditText
  23. android:id="@+id/inputNamaDepan"
  24. android:layout_width="0dp"
  25. android:layout_height="wrap_content"
  26. android:layout_weight="1"
  27. android:hint="Nama Depan" />
  28.  
  29.  
  30. <EditText
  31. android:id="@+id/inputNamaBelakang"
  32. android:layout_width="0dp"
  33. android:layout_height="wrap_content"
  34. android:layout_weight="1"
  35. android:hint="Nama Belakang" />
  36.  
  37. </LinearLayout>
  38.  
  39. <com.google.android.material.textfield.TextInputLayout
  40. android:layout_width="match_parent"
  41. android:layout_height="wrap_content">
  42.  
  43. <EditText
  44. android:id="@+id/inputNoHp"
  45. android:inputType="number"
  46. android:maxLength="12"
  47. android:layout_width="match_parent"
  48. android:layout_height="wrap_content"
  49. android:layout_marginBottom="8dp"
  50. android:hint="No Hp" />
  51.  
  52. </com.google.android.material.textfield.TextInputLayout>
  53.  
  54. <TextView
  55. android:layout_width="wrap_content"
  56. android:layout_height="wrap_content"
  57. android:text="Gender" />
  58.  
  59.  
  60. <RadioGroup
  61. android:layout_width="match_parent"
  62. android:layout_height="wrap_content"
  63. android:layout_marginBottom="8dp"
  64. android:orientation="horizontal">
  65.  
  66. <RadioButton
  67. android:id="@+id/rbPria"
  68. android:layout_width="wrap_content"
  69. android:layout_height="wrap_content"
  70. android:text="Pria" />
  71.  
  72. <RadioButton
  73. android:id="@+id/rbWanita"
  74. android:layout_width="wrap_content"
  75. android:layout_height="wrap_content"
  76. android:text="Wanita" />
  77. </RadioGroup>
  78.  
  79. <TextView
  80. android:layout_width="wrap_content"
  81. android:layout_height="wrap_content"
  82. android:text="Jenjang" />
  83.  
  84. <Spinner
  85. android:id="@+id/spinnerJenjang"
  86. android:layout_width="match_parent"
  87. android:layout_height="wrap_content"
  88. android:layout_marginBottom="8dp"
  89. android:entries="@array/jenjang" />
  90.  
  91. <TextView
  92. android:layout_width="wrap_content"
  93. android:layout_height="wrap_content"
  94. android:text="Hobi" />
  95.  
  96. <CheckBox
  97. android:id="@+id/cbMembaca"
  98. android:layout_width="wrap_content"
  99. android:layout_height="wrap_content"
  100. android:text="Membaca" />
  101.  
  102.  
  103. <CheckBox
  104. android:id="@+id/cbMenulis"
  105. android:layout_width="wrap_content"
  106. android:layout_height="wrap_content"
  107. android:text="Menulis" />
  108.  
  109.  
  110. <CheckBox
  111. android:id="@+id/cbMenggambar"
  112. android:layout_width="wrap_content"
  113. android:layout_height="wrap_content"
  114. android:layout_marginBottom="8dp"
  115. android:text="Menggambar" />
  116.  
  117.  
  118. <com.google.android.material.textfield.TextInputLayout
  119. android:layout_width="match_parent"
  120. android:layout_height="wrap_content">
  121.  
  122. <EditText
  123. android:id="@+id/inputAlamat"
  124. android:layout_width="match_parent"
  125. android:layout_height="150dp"
  126. android:layout_marginBottom="8dp"
  127. android:gravity="start"
  128. android:hint="Alamat" />
  129. </com.google.android.material.textfield.TextInputLayout>
  130.  
  131. <Button
  132. android:id="@+id/btnSimpan"
  133. android:layout_width="match_parent"
  134. android:layout_height="wrap_content"
  135. android:text="Simpan" />
  136.  
  137. </LinearLayout>
  138.  
  139.  
  140. </ScrollView>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement