Advertisement
wildanfuady

Untitled

Mar 2nd, 2020
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.97 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:orientation="vertical"
  9. android:padding="10dp">
  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_weight="1"
  19. android:layout_width="0dp"
  20. android:layout_height="wrap_content"
  21. android:id="@+id/inputNamaDepan"
  22. android:hint="Nama Depan"/>
  23.  
  24. <EditText
  25. android:layout_weight="1"
  26. android:layout_width="0dp"
  27. android:layout_height="wrap_content"
  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. android:layout_marginTop="10dp"/>
  40.  
  41. <TextView
  42. android:layout_width="match_parent"
  43. android:layout_height="wrap_content"
  44. android:text="Gender: "
  45. android:textSize="20sp"
  46. android:layout_marginTop="10dp"/>
  47.  
  48. <RadioGroup
  49. android:layout_width="match_parent"
  50. android:layout_height="wrap_content">
  51.  
  52. <LinearLayout
  53. android:layout_width="match_parent"
  54. android:layout_height="wrap_content"
  55. android:orientation="horizontal"
  56. android:layout_marginTop="10dp">
  57. <RadioButton
  58. android:layout_width="wrap_content"
  59. android:layout_height="wrap_content"
  60. android:text="Pria"
  61. android:id="@+id/rbPria"/>
  62.  
  63. <RadioButton
  64. android:layout_width="wrap_content"
  65. android:layout_height="wrap_content"
  66. android:text="Wanita"
  67. android:id="@+id/rbWanita"/>
  68.  
  69. </LinearLayout>
  70.  
  71. </RadioGroup>
  72.  
  73. <TextView
  74. android:layout_width="match_parent"
  75. android:layout_height="wrap_content"
  76. android:text="Jenjang: "
  77. android:textSize="20sp"
  78. android:layout_marginTop="10dp"/>
  79.  
  80. <Spinner
  81. android:layout_width="match_parent"
  82. android:layout_height="wrap_content"
  83. android:id="@+id/spinnerJenjang"
  84. android:layout_marginTop="10dp"
  85. android:entries="@array/jenjang"/>
  86.  
  87. <TextView
  88. android:layout_width="match_parent"
  89. android:layout_height="wrap_content"
  90. android:text="Hobi: "
  91. android:textSize="20sp"
  92. android:layout_marginTop="10dp"/>
  93.  
  94. <CheckBox
  95. android:layout_width="wrap_content"
  96. android:layout_height="wrap_content"
  97. android:text="Membaca"
  98. android:id="@+id/rbMembaca"/>
  99.  
  100. <CheckBox
  101. android:layout_width="wrap_content"
  102. android:layout_height="wrap_content"
  103. android:text="Menulis"
  104. android:id="@+id/rbMenulis"/>
  105.  
  106. <CheckBox
  107. android:layout_width="wrap_content"
  108. android:layout_height="wrap_content"
  109. android:text="Menggambar"
  110. android:id="@+id/rbMenggambar"/>
  111.  
  112. <EditText
  113. android:layout_width="match_parent"
  114. android:layout_height="100dp"
  115. android:gravity="top"
  116. android:inputType="text|textImeMultiLine"
  117. android:hint="Alamat"
  118. android:id="@+id/inputAlamat"/>
  119.  
  120. <Button
  121. android:layout_width="match_parent"
  122. android:layout_height="wrap_content"
  123. android:text="Simpan"
  124. android:background="@color/colorPrimary"
  125. android:textColor="@color/colorAccent"/>
  126.  
  127.  
  128. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement