diff --git a/app/src/main/java/com/example/if3210_2024_android_aab/model/ResponseItem.kt b/app/src/main/java/com/example/if3210_2024_android_aab/model/ResponseItem.kt new file mode 100644 index 0000000000000000000000000000000000000000..5c37c11c759c43374684f6e884198243d2e8a802 --- /dev/null +++ b/app/src/main/java/com/example/if3210_2024_android_aab/model/ResponseItem.kt @@ -0,0 +1,17 @@ +package com.example.if3210_2024_android_aab.model + +import com.google.gson.annotations.SerializedName + +data class Item ( + @SerializedName("name") val name: String, + @SerializedName("qty") val qty: Int, + @SerializedName("price") val price: Double, +) + +data class ResponseItem ( + @SerializedName("items") val items: ItemsWrapper, +) + +data class ItemsWrapper ( + @SerializedName("items") val items: List<Item>, +) \ No newline at end of file diff --git a/app/src/main/res/drawable/baseline_circle_24.xml b/app/src/main/res/drawable/baseline_circle_24.xml new file mode 100644 index 0000000000000000000000000000000000000000..4ddd109fce40b50de62cfeae314ba30836bde0e3 --- /dev/null +++ b/app/src/main/res/drawable/baseline_circle_24.xml @@ -0,0 +1,5 @@ +<vector android:height="24dp" android:tint="#000000" + android:viewportHeight="24" android:viewportWidth="24" + android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android"> + <path android:fillColor="@android:color/white" android:pathData="M12,2C6.47,2 2,6.47 2,12s4.47,10 10,10 10,-4.47 10,-10S17.53,2 12,2z"/> +</vector> diff --git a/app/src/main/res/drawable/baseline_image_24.xml b/app/src/main/res/drawable/baseline_image_24.xml new file mode 100644 index 0000000000000000000000000000000000000000..35960a0bdfe1e4a1a302b1c48a2456af1412bf8f --- /dev/null +++ b/app/src/main/res/drawable/baseline_image_24.xml @@ -0,0 +1,5 @@ +<vector android:height="24dp" android:tint="#000000" + android:viewportHeight="24" android:viewportWidth="24" + android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android"> + <path android:fillColor="@android:color/white" android:pathData="M21,19V5c0,-1.1 -0.9,-2 -2,-2H5c-1.1,0 -2,0.9 -2,2v14c0,1.1 0.9,2 2,2h14c1.1,0 2,-0.9 2,-2zM8.5,13.5l2.5,3.01L14.5,12l4.5,6H5l3.5,-4.5z"/> +</vector>