mirror of
https://github.com/Nezumi-2711/Foodify.git
synced 2026-09-23 04:09:52 +00:00
153 lines
5.7 KiB
XML
153 lines
5.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
>
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="@color/red"
|
|
android:layout_margin="10dp"
|
|
>
|
|
|
|
<TextView
|
|
android:textColor="@color/white"
|
|
android:fontFamily="@font/opensans"
|
|
android:text="@string/delete"
|
|
android:textSize="20sp"
|
|
android:textStyle="bold"
|
|
android:layout_toStartOf="@id/img_delete"
|
|
android:layout_centerVertical="true"
|
|
android:layout_marginEnd="5dp"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
/>
|
|
|
|
<ImageView
|
|
android:id="@+id/img_delete"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:src="@drawable/baseline_delete_24"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_centerVertical="true"
|
|
android:layout_marginEnd="10dp"
|
|
tools:ignore="ContentDescription" />
|
|
</RelativeLayout>
|
|
|
|
|
|
<!--Layout foreground-->
|
|
<LinearLayout
|
|
android:id="@+id/layout_foreground"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="horizontal"
|
|
android:background="@color/white"
|
|
android:layout_margin="5dp"
|
|
>
|
|
|
|
<ImageView
|
|
android:id="@+id/image_view"
|
|
android:layout_width="110dp"
|
|
android:layout_height="110dp"
|
|
android:src="@drawable/food"
|
|
android:scaleType="centerCrop"
|
|
app:riv_corner_radius="10dip"
|
|
tools:ignore="ContentDescription" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
>
|
|
|
|
<TextView
|
|
android:id="@+id/food_name_text_view"
|
|
android:text="@string/food_name"
|
|
android:textSize="15sp"
|
|
android:textColor="@color/black"
|
|
android:fontFamily="@font/opensans"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="47dp"
|
|
android:layout_marginStart="5dp"
|
|
android:layout_marginTop="5dp"
|
|
android:layout_marginEnd="10dp"
|
|
app:layout_constraintStart_toEndOf="@id/image_view"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
/>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
>
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:layout_weight="0.49"
|
|
android:layout_marginStart="5dp"
|
|
>
|
|
|
|
<TextView
|
|
android:id="@+id/shop_name_text_view"
|
|
android:text="Shop Name"
|
|
android:textSize="14sp"
|
|
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"
|
|
app:layout_constraintTop_toBottomOf="@id/text_view_1"
|
|
/>
|
|
|
|
<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="25sp"
|
|
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>
|
|
|
|
<com.cepheuen.elegantnumberbutton.view.ElegantNumberButton
|
|
android:id="@+id/quantity"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
app:backGroundColor="@color/white"
|
|
app:textColor="@color/primaryColor"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_weight="0.5"
|
|
/>
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
</FrameLayout> |