Advertisement
adesuryadi_

25activity_buat_biodata.xml

Jun 25th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.91 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:tools="http://schemas.android.com/tools"
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent"
  6. tools:context=".BuatBiodata" >
  7.  
  8. <EditText
  9. android:id="@+id/editText1"
  10. android:layout_width="match_parent"
  11. android:layout_height="wrap_content"
  12. android:layout_alignLeft="@+id/textView1"
  13. android:layout_below="@+id/textView1" >
  14.  
  15. <requestFocus />
  16. </EditText>
  17.  
  18. <TextView
  19. android:id="@+id/textView1"
  20. android:layout_width="wrap_content"
  21. android:layout_height="wrap_content"
  22. android:layout_alignParentLeft="true"
  23. android:layout_alignParentTop="true"
  24. android:text="Nomor"
  25. android:textSize="20sp"
  26. />
  27.  
  28. <TextView
  29. android:id="@+id/textView2"
  30. android:layout_width="wrap_content"
  31. android:layout_height="wrap_content"
  32. android:layout_alignLeft="@+id/editText1"
  33. android:layout_below="@+id/editText1"
  34. android:layout_marginTop="10dp"
  35. android:text="Nama"
  36. android:textSize="20sp"/>
  37.  
  38. <EditText
  39. android:id="@+id/editText2"
  40. android:layout_width="match_parent"
  41. android:layout_height="wrap_content"
  42. android:layout_alignLeft="@+id/textView2"
  43. android:layout_below="@+id/textView2"
  44. android:textSize="20sp"/>
  45.  
  46. <TextView
  47. android:id="@+id/textView3"
  48. android:layout_width="wrap_content"
  49. android:layout_height="wrap_content"
  50. android:layout_alignLeft="@+id/editText2"
  51. android:layout_below="@+id/editText2"
  52. android:layout_marginTop="10dp"
  53. android:text="Tanggal Lahir"
  54. android:textSize="20sp"/>
  55.  
  56. <EditText
  57. android:id="@+id/editText3"
  58. android:layout_width="match_parent"
  59. android:layout_height="wrap_content"
  60. android:layout_alignLeft="@+id/textView3"
  61. android:layout_below="@+id/textView3"
  62. android:textSize="20sp"/>
  63.  
  64. <TextView
  65. android:id="@+id/textView4"
  66. android:layout_width="wrap_content"
  67. android:layout_height="wrap_content"
  68. android:layout_alignLeft="@+id/editText3"
  69. android:layout_below="@+id/editText3"
  70. android:layout_marginTop="10dp"
  71. android:text="Jenis Kelamin"
  72. android:textSize="20sp"/>
  73.  
  74. <EditText
  75. android:id="@+id/editText4"
  76. android:layout_width="match_parent"
  77. android:layout_height="wrap_content"
  78. android:layout_alignLeft="@+id/textView4"
  79. android:layout_below="@+id/textView4"
  80. android:textSize="20sp"/>
  81.  
  82. <TextView
  83. android:id="@+id/textView5"
  84. android:layout_width="wrap_content"
  85. android:layout_height="wrap_content"
  86. android:layout_alignLeft="@+id/editText4"
  87. android:layout_below="@+id/editText4"
  88. android:layout_marginTop="10dp"
  89. android:text="Alamat"
  90. android:textSize="20sp"/>
  91.  
  92. <EditText
  93. android:id="@+id/editText5"
  94. android:layout_width="match_parent"
  95. android:layout_height="wrap_content"
  96. android:layout_alignLeft="@+id/textView5"
  97. android:layout_below="@+id/textView5" />
  98.  
  99. <Button
  100. android:id="@+id/button1"
  101. android:layout_width="wrap_content"
  102. android:layout_height="wrap_content"
  103. android:layout_alignLeft="@+id/editText5"
  104. android:layout_alignParentBottom="true"
  105. android:text="Simpan" />
  106.  
  107. <Button
  108. android:id="@+id/button2"
  109. android:layout_width="wrap_content"
  110. android:layout_height="wrap_content"
  111. android:layout_alignBaseline="@+id/button1"
  112. android:layout_alignBottom="@+id/button1"
  113. android:layout_toRightOf="@+id/textView4"
  114. android:text="Back" />
  115.  
  116. </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement