Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2020
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.50 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout
  3. xmlns:android="http://schemas.android.com/apk/res/android"
  4. xmlns:app="http://schemas.android.com/apk/res-auto"
  5. xmlns:tools="http://schemas.android.com/tools"
  6. android:layout_width="match_parent"
  7. android:layout_height="match_parent"
  8. android:orientation="vertical"
  9. android:layout_margin="16dp"
  10. tools:context=".FormActivity">
  11.  
  12. <LinearLayout
  13. android:layout_width="match_parent"
  14. android:layout_height="wrap_content">
  15.  
  16. <com.google.android.material.textfield.TextInputLayout
  17. android:layout_width="wrap_content"
  18. android:layout_height="wrap_content"
  19. android:layout_weight="1">
  20.  
  21. <EditText
  22. android:id="@+id/et_nama_depan"
  23. android:layout_width="match_parent"
  24. android:layout_height="wrap_content"
  25. android:hint="Nama depan"/>
  26. </com.google.android.material.textfield.TextInputLayout>
  27.  
  28. <EditText
  29. android:id="@+id/et_nama_belakang"
  30. android:layout_width="wrap_content"
  31. android:layout_height="wrap_content"
  32. android:layout_weight="1"
  33. android:hint="Nama belakang"/>
  34. </LinearLayout>
  35.  
  36. <EditText
  37. android:id="@+id/et_no_hp"
  38. android:layout_width="match_parent"
  39. android:layout_height="wrap_content"
  40. android:hint="No HP"/>
  41.  
  42. <TextView
  43. android:layout_width="wrap_content"
  44. android:layout_height="wrap_content"
  45. android:text="Gender"/>
  46.  
  47. <RadioGroup
  48. android:id="@+id/rg_gender"
  49. android:layout_width="match_parent"
  50. android:layout_height="wrap_content"
  51. android:orientation="horizontal">
  52. <RadioButton
  53. android:id="@+id/rb_pria"
  54. android:layout_width="wrap_content"
  55. android:layout_height="wrap_content"
  56. android:text="Pria"/>
  57.  
  58. <RadioButton
  59. android:id="@+id/rb_wanita"
  60. android:layout_width="wrap_content"
  61. android:layout_height="wrap_content"
  62. android:text="Wanita"/>
  63. </RadioGroup>
  64.  
  65. <TextView
  66. android:layout_width="wrap_content"
  67. android:layout_height="wrap_content"
  68. android:text="Jenjang"/>
  69.  
  70. <Spinner
  71. android:id="@+id/sp_jenjang"
  72. android:layout_width="match_parent"
  73. android:layout_height="wrap_content" />
  74.  
  75. <TextView
  76. android:layout_width="wrap_content"
  77. android:layout_height="wrap_content"
  78. android:text="Hobi"/>
  79.  
  80. <CheckBox
  81. android:id="@+id/cb_membaca"
  82. android:layout_width="wrap_content"
  83. android:layout_height="wrap_content"
  84. android:text="Membaca"/>
  85.  
  86. <CheckBox
  87. android:id="@+id/cb_menulis"
  88. android:layout_width="wrap_content"
  89. android:layout_height="wrap_content"
  90. android:text="Menulis"/>
  91.  
  92. <CheckBox
  93. android:id="@+id/cb_menggambar"
  94. android:layout_width="wrap_content"
  95. android:layout_height="wrap_content"
  96. android:text="Menggambar"/>
  97.  
  98. <EditText
  99. android:id="@+id/et_alamat"
  100. android:layout_width="match_parent"
  101. android:layout_height="90dp"
  102. android:gravity="top"
  103. android:hint="Alamat"/>
  104.  
  105. <Button
  106. android:id="@+id/btn_simpan"
  107. android:layout_width="match_parent"
  108. android:layout_height="wrap_content"
  109. android:text="Simpan"/>
  110. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement