mirror of
https://github.com/Nezumi-2711/Foodify.git
synced 2026-09-23 04:09:52 +00:00
130 lines
5.0 KiB
XML
130 lines
5.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
tools:context=".Fragment.BasketFragment"
|
|
android:id="@+id/list_basket_food_view"
|
|
>
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/recycler_view_basket_food"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
tools:listitem="@layout/item_food_basket"
|
|
android:visibility="gone"
|
|
/>
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:id="@+id/empty_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerVertical="true"
|
|
android:layout_centerHorizontal="true"
|
|
>
|
|
|
|
<ImageView
|
|
android:id="@+id/image_view"
|
|
android:src="@drawable/cart_empty"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
tools:ignore="ContentDescription" />
|
|
|
|
<TextView
|
|
android:id="@+id/text_view_header"
|
|
android:text="Quên chưa đặt món rồi nè bạn ơi!"
|
|
android:fontFamily="@font/opensans"
|
|
android:textSize="18sp"
|
|
android:textStyle="bold"
|
|
android:textColor="@color/black"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="10dp"
|
|
app:layout_constraintTop_toBottomOf="@id/image_view"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
/>
|
|
|
|
<TextView
|
|
android:id="@+id/text_view_description"
|
|
android:textAlignment="center"
|
|
android:text="Bạn sẽ nhìn thấy các món ăn tại đây sau khi bỏ những món ăn bạn muốn vào giỏ hàng."
|
|
android:fontFamily="@font/opensans"
|
|
android:textSize="15sp"
|
|
android:textStyle="bold"
|
|
android:textColor="@color/gray"
|
|
android:layout_marginTop="5dp"
|
|
android:layout_marginEnd="40dp"
|
|
android:layout_marginStart="40dp"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:layout_constraintTop_toBottomOf="@id/text_view_header"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
/>
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
<androidx.cardview.widget.CardView
|
|
android:id="@+id/cardView"
|
|
android:layout_alignParentBottom="true"
|
|
app:cardBackgroundColor="@color/green"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="100dp"
|
|
>
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent" >
|
|
|
|
<LinearLayout
|
|
android:layout_margin="8dp"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content" >
|
|
|
|
<TextView
|
|
android:text="Tổng cộng: "
|
|
android:textSize="20sp"
|
|
android:fontFamily="@font/opensans"
|
|
android:textColor="@android:color/white"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content" />
|
|
|
|
<TextView
|
|
android:id="@+id/total_text_view"
|
|
android:text="$10,000"
|
|
android:fontFamily="@font/opensans"
|
|
android:textSize="24sp"
|
|
android:textColor="@android:color/white"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content" />
|
|
|
|
</LinearLayout>
|
|
|
|
<Button
|
|
android:id="@+id/btnPlaceOrder"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentBottom="true"
|
|
android:layout_marginStart="8dp"
|
|
android:layout_marginLeft="8dp"
|
|
android:layout_marginTop="8dp"
|
|
android:layout_marginEnd="8dp"
|
|
android:layout_marginRight="8dp"
|
|
android:layout_marginBottom="8dp"
|
|
android:text="Đặt hàng"
|
|
android:fontFamily="@font/bebas"
|
|
android:textColor="@android:color/white"
|
|
/>
|
|
</RelativeLayout>
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
|
|
|
|
</RelativeLayout> |