mirror of
https://github.com/Nezumi-2711/Foodify.git
synced 2026-09-22 13:38:41 +00:00
Improve UI
This commit is contained in:
@@ -80,16 +80,32 @@
|
|||||||
android:layout_weight="0.8"
|
android:layout_weight="0.8"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<ImageView
|
<LinearLayout
|
||||||
android:id="@+id/favorite_icon"
|
|
||||||
android:src="@drawable/baseline_favorite_border_24"
|
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="60dp"
|
||||||
android:layout_marginTop="35dp"
|
|
||||||
android:layout_weight="0.2"
|
android:layout_weight="0.2"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
android:orientation="vertical"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
android:layout_gravity="bottom"
|
||||||
/>
|
>
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/discount"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="-89%"
|
||||||
|
android:textSize="18sp"
|
||||||
|
android:textColor="@color/red"
|
||||||
|
android:layout_gravity="right"
|
||||||
|
/>
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/favorite_icon"
|
||||||
|
android:src="@drawable/baseline_favorite_border_24"
|
||||||
|
android:layout_width="30dp"
|
||||||
|
android:layout_height="30dp"
|
||||||
|
android:layout_marginTop="10dp"
|
||||||
|
android:layout_gravity="right"
|
||||||
|
/>
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|||||||
@@ -1,14 +1,14 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:layout_width="100dp"
|
android:layout_width="130dp"
|
||||||
android:layout_height="170dp"
|
android:layout_height="221dp"
|
||||||
android:layout_marginBottom="10dp"
|
android:layout_marginBottom="10dp"
|
||||||
android:layout_marginEnd="10dp"
|
android:layout_marginEnd="10dp"
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||||
|
|
||||||
<androidx.cardview.widget.CardView
|
<androidx.cardview.widget.CardView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="169dp"
|
android:layout_height="200dp"
|
||||||
app:cardCornerRadius="10dp"
|
app:cardCornerRadius="10dp"
|
||||||
>
|
>
|
||||||
|
|
||||||
@@ -18,8 +18,8 @@
|
|||||||
|
|
||||||
<com.makeramen.roundedimageview.RoundedImageView
|
<com.makeramen.roundedimageview.RoundedImageView
|
||||||
android:id="@+id/image_view"
|
android:id="@+id/image_view"
|
||||||
android:layout_width="100dp"
|
android:layout_width="131dp"
|
||||||
android:layout_height="100dp"
|
android:layout_height="131dp"
|
||||||
android:src="@drawable/food"
|
android:src="@drawable/food"
|
||||||
android:scaleType="centerCrop"
|
android:scaleType="centerCrop"
|
||||||
app:riv_corner_radius="10dip"
|
app:riv_corner_radius="10dip"
|
||||||
@@ -28,19 +28,6 @@
|
|||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<ImageView
|
|
||||||
android:id="@+id/favourite_icon"
|
|
||||||
android:src="@drawable/baseline_favorite_border_24"
|
|
||||||
android:layout_width="15dp"
|
|
||||||
android:layout_height="17dp"
|
|
||||||
android:layout_marginEnd="5dp"
|
|
||||||
android:layout_marginBottom="2dp"
|
|
||||||
android:background="@drawable/transparent_background"
|
|
||||||
app:layout_constraintEnd_toEndOf="@id/image_view"
|
|
||||||
app:layout_constraintBottom_toBottomOf="@id/image_view"
|
|
||||||
android:contentDescription="@string/favourite_icon"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/title"
|
android:id="@+id/title"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
@@ -70,13 +57,23 @@
|
|||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/price"
|
android:id="@+id/price"
|
||||||
android:textSize="18sp"
|
android:textSize="18sp"
|
||||||
|
android:text="100.000"
|
||||||
android:textColor="@color/primaryColor"
|
android:textColor="@color/primaryColor"
|
||||||
android:fontFamily="@font/bebas"
|
android:fontFamily="@font/bebas"
|
||||||
android:layout_marginStart="6dp"
|
android:layout_marginStart="6dp"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_weight="0.8"
|
android:layout_weight="0.55"
|
||||||
android:layout_height="match_parent" />
|
android:layout_height="match_parent" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:text="-59%"
|
||||||
|
android:textSize="8sp"
|
||||||
|
android:textColor="@color/red"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:layout_weight="0.2"
|
||||||
|
/>
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/basket_icon"
|
android:id="@+id/basket_icon"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
|
|||||||
Reference in New Issue
Block a user