mirror of
https://github.com/Nezumi-2711/Foodify-Shipper.git
synced 2026-09-22 20:00:51 +00:00
124 lines
4.8 KiB
XML
124 lines
4.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/layout_foreground"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="horizontal"
|
|
android:background="@color/white"
|
|
android:padding="5dp"
|
|
>
|
|
|
|
<ImageView
|
|
android:id="@+id/image_view"
|
|
android:layout_width="95dp"
|
|
android:layout_height="95dp"
|
|
android:scaleType="centerCrop"
|
|
app:riv_corner_radius="10dip"
|
|
tools:ignore="ContentDescription" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
>
|
|
|
|
<TextView
|
|
android:id="@+id/food_name_text_view"
|
|
android:text="Food Name"
|
|
android:textSize="15sp"
|
|
android:textColor="@color/black"
|
|
android:fontFamily="@font/opensans"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_marginStart="5dp"
|
|
android:layout_marginTop="5dp"
|
|
android:layout_marginEnd="10dp"
|
|
android:layout_weight="0.4"
|
|
app:layout_constraintStart_toEndOf="@id/image_view"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
android:maxLines="2"
|
|
android:ellipsize="end"
|
|
/>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:orientation="horizontal"
|
|
android:layout_weight="0.5"
|
|
>
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:layout_weight="0.6"
|
|
android:layout_marginStart="5dp"
|
|
>
|
|
|
|
<TextView
|
|
android:id="@+id/shop_name_text_view"
|
|
android:text="Shop Name"
|
|
android:textSize="13sp"
|
|
android:textColor="@color/secondary"
|
|
android:fontFamily="@font/opensans"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="2dp"
|
|
app:layout_constraintStart_toEndOf="@id/image_view"
|
|
android:maxLines="1"
|
|
android:ellipsize="end"
|
|
/>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="2dp"
|
|
>
|
|
|
|
<TextView
|
|
android:id="@+id/price_text_view"
|
|
android:text="$5.00"
|
|
android:textSize="20sp"
|
|
android:textColor="@color/primaryColor"
|
|
android:fontFamily="@font/bebas"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
/>
|
|
|
|
<TextView
|
|
android:id="@+id/discount"
|
|
android:text="-59%"
|
|
android:textSize="8sp"
|
|
android:textColor="@color/red"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:visibility="gone"
|
|
/>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/quantity_text_view"
|
|
android:text="Số lượng: 10"
|
|
android:fontFamily="@font/opensans"
|
|
android:textColor="@color/black"
|
|
android:textSize="13sp"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_weight="0.3"
|
|
/>
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</LinearLayout> |