Advertisement
adesuryadi_

UAS_activitymain.xml

Jul 28th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.65 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:theme="@android:style/Theme.NoTitleBar"
  6. android:layout_width="match_parent"
  7. android:layout_height="match_parent"
  8. android:orientation="vertical"
  9. android:background="#ddd"
  10. android:padding="10dp"
  11. tools:context=".MainActivity">
  12.  
  13. <LinearLayout
  14. android:layout_width="match_parent"
  15. android:layout_height="wrap_content"
  16. android:layout_marginTop="20dp"
  17. android:orientation="horizontal">
  18.  
  19. <TextView
  20. android:layout_width="match_parent"
  21. android:layout_height="wrap_content"
  22. android:layout_weight="3"
  23. android:textColor="#000"
  24. android:text="Kode Obat"/>
  25.  
  26. <EditText
  27. android:id="@+id/editText_kode"
  28. style="@android:style/Widget.Material.Light.EditText"
  29. android:layout_width="match_parent"
  30. android:layout_height="wrap_content"
  31. android:layout_weight="1"
  32. android:ems="10"
  33. android:hint="Kode Obat"
  34. android:inputType="textPersonName" />
  35. </LinearLayout>
  36.  
  37. <LinearLayout
  38. android:layout_width="match_parent"
  39. android:layout_height="wrap_content"
  40. android:layout_marginTop="20dp"
  41. android:orientation="horizontal">
  42.  
  43. <TextView
  44. android:layout_width="match_parent"
  45. android:layout_height="wrap_content"
  46. android:layout_weight="3"
  47. android:textColor="#000"
  48. android:text="Nama Obat"/>
  49.  
  50. <EditText
  51. android:id="@+id/editText_obat"
  52. style="@android:style/Widget.Material.Light.EditText"
  53. android:layout_width="match_parent"
  54. android:layout_height="wrap_content"
  55. android:layout_weight="1"
  56. android:ems="10"
  57. android:hint="Nama Obat"
  58. android:inputType="textPersonName" />
  59. </LinearLayout>
  60.  
  61. <LinearLayout
  62. android:layout_width="match_parent"
  63. android:layout_height="wrap_content"
  64. android:layout_marginTop="20dp"
  65. android:orientation="horizontal">
  66.  
  67. <TextView
  68. android:layout_width="match_parent"
  69. android:layout_height="wrap_content"
  70. android:layout_weight="3"
  71. android:textColor="#000"
  72. android:text="Jenis Obat"/>
  73.  
  74. <EditText
  75. android:id="@+id/editText_jenis"
  76. style="@android:style/Widget.Material.Light.EditText"
  77. android:layout_width="match_parent"
  78. android:layout_height="wrap_content"
  79. android:layout_weight="1"
  80. android:ems="10"
  81. android:hint="Jenis Obat"
  82. android:inputType="textPersonName"/>
  83. </LinearLayout>
  84.  
  85. <LinearLayout
  86. android:layout_width="match_parent"
  87. android:layout_height="wrap_content"
  88. android:layout_marginTop="20dp"
  89. android:orientation="horizontal">
  90.  
  91. <TextView
  92. android:layout_width="match_parent"
  93. android:layout_height="wrap_content"
  94. android:layout_weight="3"
  95. android:textColor="#000"
  96. android:text="Indikasi"/>
  97.  
  98. <EditText
  99. android:id="@+id/editText_indikasi"
  100. style="@android:style/Widget.Material.Light.EditText"
  101. android:layout_width="match_parent"
  102. android:layout_height="wrap_content"
  103. android:layout_weight="1"
  104. android:ems="10"
  105. android:hint="Indikasi"
  106. android:inputType="textPersonName"/>
  107. </LinearLayout>
  108.  
  109. <LinearLayout
  110. android:layout_width="match_parent"
  111. android:layout_height="wrap_content"
  112. android:layout_marginTop="20dp"
  113. android:orientation="horizontal">
  114.  
  115. <TextView
  116. android:layout_width="match_parent"
  117. android:layout_height="wrap_content"
  118. android:layout_weight="3"
  119. android:textColor="#000"
  120. android:text="Tanggal Kadaluwarsa"/>
  121.  
  122. <EditText
  123. android:id="@+id/editText_tanggal"
  124. style="@android:style/Widget.Material.Light.EditText"
  125. android:layout_width="match_parent"
  126. android:layout_height="wrap_content"
  127. android:layout_weight="1"
  128. android:ems="10"
  129. android:hint="Tanggal Kadaluwarsa"
  130. android:inputType="textPersonName"/>
  131. </LinearLayout>
  132.  
  133. <LinearLayout
  134. android:layout_width="match_parent"
  135. android:layout_height="wrap_content"
  136. android:layout_marginTop="20dp"
  137. android:orientation="horizontal">
  138.  
  139. <TextView
  140. android:layout_width="match_parent"
  141. android:layout_height="wrap_content"
  142. android:layout_weight="3"
  143. android:textColor="#000"
  144. android:text="Harga"/>
  145.  
  146. <EditText
  147. android:id="@+id/editText_harga"
  148. style="@android:style/Widget.Material.Light.EditText"
  149. android:layout_width="match_parent"
  150. android:layout_height="wrap_content"
  151. android:layout_weight="1"
  152. android:ems="10"
  153. android:hint="Harga"
  154. android:inputType="textPersonName"/>
  155. </LinearLayout>
  156.  
  157. <LinearLayout
  158. android:layout_width="match_parent"
  159. android:layout_height="wrap_content"
  160. android:layout_marginTop="20dp"
  161. android:orientation="horizontal">
  162.  
  163. <TextView
  164. android:layout_width="match_parent"
  165. android:layout_height="wrap_content"
  166. android:layout_weight="3"
  167. android:textColor="#000"
  168. android:text="Id"/>
  169.  
  170. <EditText
  171. android:id="@+id/editText_id"
  172. style="@android:style/Widget.Material.Light.EditText"
  173. android:layout_width="match_parent"
  174. android:layout_height="wrap_content"
  175. android:layout_weight="1"
  176. android:ems="10"
  177. android:hint="Id"
  178. android:inputType="textPersonName" />
  179. </LinearLayout>
  180.  
  181. <LinearLayout
  182. android:layout_marginTop="20dp"
  183. android:layout_width="match_parent"
  184. android:layout_height="wrap_content"
  185. android:orientation="horizontal">
  186.  
  187. <Button
  188. android:id="@+id/button_add"
  189. style="@android:style/Widget.Material.Light.Button"
  190. android:background="@color/colorAccent"
  191. android:textColor="@android:color/background_light"
  192. android:layout_width="match_parent"
  193. android:layout_height="wrap_content"
  194. android:text="Add Data"
  195. android:textAppearance="@android:style/TextAppearance.Material.Button"
  196. android:layout_weight="1" />
  197.  
  198. <Button
  199. android:id="@+id/button_view"
  200. style="@android:style/Widget.Material.Light.Button"
  201. android:layout_width="match_parent"
  202. android:layout_height="wrap_content"
  203. android:background="@color/colorAccent"
  204. android:layout_weight="1"
  205. android:text="view all"
  206. android:textAppearance="@android:style/TextAppearance.Material.Button"
  207. android:textColor="@android:color/background_light" />
  208. </LinearLayout>
  209.  
  210. <LinearLayout
  211. android:layout_marginTop="20dp"
  212. android:layout_width="match_parent"
  213. android:orientation="horizontal"
  214. android:layout_height="wrap_content">
  215.  
  216. <Button
  217. android:id="@+id/button_update"
  218. style="@android:style/Widget.Material.Light.Button"
  219. android:background="@color/colorAccent"
  220. android:textColor="@android:color/background_light"
  221. android:layout_width="match_parent"
  222. android:layout_height="wrap_content"
  223. android:layout_weight="1"
  224. android:text="Update"
  225. android:textAppearance="@style/TextAppearance.AppCompat.Button" />
  226.  
  227. <Button
  228. android:id="@+id/button_delete"
  229. style="@android:style/Widget.Material.Light.Button"
  230. android:background="@color/colorAccent"
  231. android:textColor="@android:color/background_light"
  232. android:layout_width="match_parent"
  233. android:layout_height="wrap_content"
  234. android:layout_weight="1"
  235. android:text="Delete"
  236. android:textAppearance="@style/TextAppearance.AppCompat.Button" />
  237. </LinearLayout>
  238. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement