Advertisement
Umambeeirozst

Activity Main

Mar 25th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.25 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <ScrollView android:layout_width="fill_parent"
  3. android:layout_height="fill_parent"
  4. xmlns:android="http://schemas.android.com/apk/res/android">
  5. <LinearLayout xmlns:app="http://schemas.android.com/apk/res-auto"
  6. xmlns:tools="http://schemas.android.com/tools"
  7. android:layout_width="match_parent"
  8. android:layout_height="match_parent"
  9. android:orientation="vertical"
  10. android:padding="30dp"
  11. tools:context=".MainActivity">
  12. <EditText
  13. android:layout_width="match_parent"
  14. android:layout_height="match_parent"
  15. android:hint="Masukan nama anda ...."
  16. android:id="@+id/edt_name"
  17. android:inputType="text"/>
  18. <TextView
  19. android:layout_width="wrap_content"
  20. android:layout_height="wrap_content"
  21. android:text="Pilih Menu :"
  22. android:textSize="25dp"/>
  23.  
  24. <CheckBox
  25. android:id="@+id/WhippedCream_checkbox"
  26. android:layout_width="wrap_content"
  27. android:layout_height="wrap_content"
  28. android:paddingLeft="16dp"
  29. android:text="Roti"
  30. android:textSize="15sp" />
  31.  
  32. <CheckBox
  33. android:id="@+id/Chocolate_checkbox"
  34. android:layout_width="wrap_content"
  35. android:layout_height="wrap_content"
  36. android:paddingLeft="16dp"
  37. android:text="Ice Cream"
  38. android:textSize="15sp" />
  39.  
  40. <View
  41. android:layout_marginTop="10dp"
  42. android:layout_width="match_parent"
  43. android:layout_height="2dp"
  44. android:background="@color/colorAccent"/>
  45.  
  46.  
  47.  
  48. <TextView
  49. android:layout_width="wrap_content"
  50. android:layout_height="wrap_content"
  51. android:text="jumlah"
  52. android:textSize="25dp"
  53. android:textAllCaps="true"
  54. android:layout_marginBottom="16dp"
  55. app:layout_constraintBottom_toBottomOf="parent"
  56. app:layout_constraintLeft_toLeftOf="parent"
  57. app:layout_constraintRight_toRightOf="parent"
  58. app:layout_constraintTop_toTopOf="parent" />
  59. <LinearLayout
  60. android:layout_width="match_parent"
  61. android:layout_height="wrap_content"
  62. android:orientation="horizontal">
  63. <Button
  64. android:layout_width="48dp"
  65. android:onClick="increment"
  66. android:text="+"
  67.  
  68. android:layout_height="48dp" />
  69. <TextView
  70. android:textColor="#212121"
  71. android:layout_gravity="center"
  72. android:layout_width="wrap_content"
  73. android:layout_height="wrap_content"
  74. android:text="0"
  75. android:paddingRight="8dp"
  76. android:paddingLeft="8dp"
  77. android:id="@+id/quantity_textview"
  78. android:textSize="25dp"/>
  79. <Button
  80. android:layout_width="48dp"
  81. android:onClick="decrement"
  82. android:text="-"
  83. android:layout_height="48dp" />
  84. </LinearLayout>
  85.  
  86. <View
  87. android:layout_marginTop="10dp"
  88. android:layout_width="match_parent"
  89. android:layout_height="2dp"
  90. android:background="@color/colorAccent"/>
  91.  
  92. <TextView
  93. android:layout_width="wrap_content"
  94. android:layout_height="wrap_content"
  95. android:text="Harga"
  96. android:textSize="30dp"
  97. android:textAllCaps="true"
  98. android:layout_marginBottom="16dp"/>
  99. <TextView
  100. android:layout_width="wrap_content"
  101. android:layout_height="wrap_content"
  102. android:text="0"
  103. android:textColor="#212121"
  104. android:id="@+id/price_textview"
  105. android:textSize="25dp"/>
  106. <Button
  107. android:layout_width="wrap_content"
  108. android:layout_marginBottom="16dp"
  109. android:onClick="Submitorder"
  110. android:layout_height="wrap_content"
  111. android:text="Pesan Sekarang"/>
  112.  
  113.  
  114. </LinearLayout>
  115. </ScrollView>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement