Advertisement
Guest User

MainActivity XML

a guest
Nov 22nd, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.53 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="com.android.ale.llaundry.MainActivity"
  8. android:orientation="vertical"
  9. android:background="#FFFFFF">
  10.  
  11. <LinearLayout
  12. android:layout_width="match_parent"
  13. android:layout_height="200dp"
  14. android:orientation="vertical">
  15.  
  16. <LinearLayout
  17. android:layout_width="match_parent"
  18. android:layout_height="wrap_content">
  19.  
  20. <ImageView
  21. android:layout_width="wrap_content"
  22. android:layout_height="150dp"
  23. android:src="@drawable/logo" />
  24. </LinearLayout>
  25. <RelativeLayout
  26. android:layout_width="match_parent"
  27. android:layout_height="match_parent">
  28.  
  29. <TextView
  30. android:layout_width="wrap_content"
  31. android:layout_height="match_parent"
  32. android:text="L Laundry"
  33. android:fontFamily="cursive"
  34. android:textSize="40dp"
  35. android:layout_centerInParent="true"/>
  36.  
  37. </RelativeLayout>
  38.  
  39.  
  40. </LinearLayout>
  41.  
  42. <LinearLayout
  43. android:layout_width="match_parent"
  44. android:layout_height="270dp"
  45. android:orientation="vertical">
  46. <LinearLayout
  47. android:layout_width="match_parent"
  48. android:layout_height="wrap_content">
  49. <TextView
  50. android:layout_width="wrap_content"
  51. android:layout_height="wrap_content"
  52. android:text="Nama : "
  53. android:fontFamily="cursive"
  54. android:textSize="25dp"/>
  55.  
  56. <EditText
  57. android:layout_width="match_parent"
  58. android:layout_height="wrap_content"
  59. android:hint="Nama"
  60. android:id="@+id/edit_nama"/>
  61.  
  62. </LinearLayout>
  63. <LinearLayout
  64. android:layout_width="match_parent"
  65. android:layout_height="wrap_content">
  66. <TextView
  67. android:layout_width="wrap_content"
  68. android:layout_height="wrap_content"
  69. android:text="Alamat : "
  70. android:fontFamily="cursive"
  71. android:textSize="25dp"/>
  72.  
  73. <EditText
  74. android:layout_width="match_parent"
  75. android:layout_height="wrap_content"
  76. android:hint="Alamat"
  77. android:id="@+id/edit_alamat"/>
  78.  
  79. </LinearLayout>
  80. <LinearLayout
  81. android:layout_width="match_parent"
  82. android:layout_height="wrap_content">
  83.  
  84.  
  85. </LinearLayout>
  86. <LinearLayout
  87. android:layout_width="match_parent"
  88. android:layout_height="wrap_content"
  89. android:orientation="horizontal">
  90. <TextView
  91. android:layout_width="wrap_content"
  92. android:layout_height="wrap_content"
  93. android:text="Paket :"
  94. android:fontFamily="cursive"
  95. android:textSize="25dp"/>
  96.  
  97. <RadioGroup
  98. android:layout_width="wrap_content"
  99. android:layout_height="wrap_content"
  100. android:id="@+id/group_paket">
  101. <RadioButton
  102. android:layout_width="match_parent"
  103. android:layout_height="match_parent"
  104. android:text="Normal (Rp. 7000 / 3hari)" />
  105. <RadioButton
  106. android:layout_width="match_parent"
  107. android:layout_height="match_parent"
  108. android:text="Kilat (Rp. 10.000 / 1hari)" />
  109. <RadioButton
  110. android:layout_width="match_parent"
  111. android:layout_height="match_parent"
  112. android:text="Ekonomis (Rp. 5000 / 5hari)"/>
  113. </RadioGroup>
  114. </LinearLayout>
  115. <LinearLayout
  116. android:layout_width="match_parent"
  117. android:layout_height="wrap_content"
  118. >
  119. <TextView
  120. android:layout_width="wrap_content"
  121. android:layout_height="wrap_content"
  122. android:text="Kontak : "
  123. android:fontFamily="cursive"
  124. android:textSize="25dp"/>
  125.  
  126. <EditText
  127. android:layout_width="wrap_content"
  128. android:layout_height="wrap_content"
  129. android:layout_weight="1"
  130. android:ems="12"
  131. android:inputType="phone"
  132. android:hint="Telepon/Hp"
  133. android:id="@+id/edit_telepon"/>
  134. </LinearLayout>
  135. <LinearLayout
  136. android:layout_width="wrap_content"
  137. android:layout_height="wrap_content">
  138. <TextView
  139. android:layout_width="wrap_content"
  140. android:layout_height="wrap_content"
  141. android:id="@+id/orderan"
  142. />
  143. </LinearLayout>
  144.  
  145. </LinearLayout>
  146. <RelativeLayout
  147. android:layout_width="match_parent"
  148. android:layout_height="match_parent">
  149. <Button
  150. android:layout_width="wrap_content"
  151. android:layout_height="wrap_content"
  152. android:text="Cuci!"
  153. android:layout_centerInParent="true"
  154. android:id="@+id/button_order" />
  155. </RelativeLayout>
  156.  
  157.  
  158. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement