Advertisement
wildanfuady

Untitled

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