Advertisement
rama_astadipati

activity_main

Jun 28th, 2018
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.95 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout android:layout_width="match_parent"
  3. android:layout_height="match_parent"
  4. android:orientation="vertical"
  5. xmlns:android="http://schemas.android.com/apk/res/android"
  6. android:padding="10dp">
  7.  
  8.  
  9. <LinearLayout
  10. android:layout_width="match_parent"
  11. android:layout_height="wrap_content"
  12. android:orientation="horizontal">
  13. <TextView
  14. android:layout_width="100dp"
  15. android:layout_height="wrap_content"
  16. android:text="Nama"/>
  17. <TextView
  18. android:layout_width="5dp"
  19. android:layout_height="wrap_content"
  20. android:text=":"/>
  21. <EditText
  22. android:layout_width="match_parent"
  23. android:layout_height="wrap_content"
  24. android:id="@+id/edt_nama"
  25. android:hint="Nama Lengkap"/>
  26. </LinearLayout>
  27. <LinearLayout
  28. android:layout_width="match_parent"
  29. android:layout_height="wrap_content"
  30. android:orientation="horizontal">
  31. <TextView
  32. android:layout_width="100dp"
  33. android:layout_height="wrap_content"
  34. android:text="Usia"/>
  35. <TextView
  36. android:layout_width="5dp"
  37. android:layout_height="wrap_content"
  38. android:text=":"/>
  39.  
  40. <EditText
  41. android:layout_width="match_parent"
  42. android:layout_height="wrap_content"
  43. android:id="@+id/edt_usia"
  44. android:hint="Usia"/>
  45. </LinearLayout>
  46. <LinearLayout
  47. android:layout_width="match_parent"
  48. android:layout_height="wrap_content"
  49. android:orientation="horizontal">
  50. <TextView
  51. android:layout_width="100dp"
  52. android:layout_height="wrap_content"
  53. android:text="Domisili"/>
  54. <TextView
  55. android:layout_width="5dp"
  56. android:layout_height="wrap_content"
  57. android:text=":"/>
  58. <EditText
  59. android:layout_width="match_parent"
  60. android:layout_height="wrap_content"
  61. android:id="@+id/edtdomisili"
  62. android:hint="domisili"/>
  63. </LinearLayout>
  64.  
  65. <Button
  66. android:layout_width="match_parent"
  67. android:layout_height="wrap_content"
  68. android:text="Save"
  69. android:id="@+id/btn_insertdata"/>
  70. <Button
  71. android:layout_width="match_parent"
  72. android:layout_height="wrap_content"
  73. android:text="Tampil Data"
  74. android:id="@+id/btntampildata"/>
  75. <Button
  76. android:layout_width="match_parent"
  77. android:layout_height="wrap_content"
  78. android:text="Update"
  79. android:id="@+id/btnUpdate"
  80. android:visibility="gone"/>
  81. <Button
  82. android:layout_width="match_parent"
  83. android:layout_height="wrap_content"
  84. android:text="Hapus"
  85. android:background="#a41a1a"
  86. android:id="@+id/btnhapus"
  87. android:visibility="gone"/>
  88. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement