mirror of
https://github.com/Nezumi-2711/PRM392.git
synced 2026-09-22 13:48:29 +00:00
33 lines
1.1 KiB
XML
33 lines
1.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.cardview.widget.CardView
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="200dp"
|
|
app:cardElevation="4dp"
|
|
android:layout_marginBottom="8dp"
|
|
>
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<ImageView
|
|
android:id="@+id/food_image"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:scaleType="centerCrop" />
|
|
|
|
<TextView
|
|
android:id="@+id/food_name"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentBottom="true"
|
|
android:background="#4f0e0d0e"
|
|
android:gravity="center"
|
|
android:text="Name of Food"
|
|
android:textColor="@color/white"
|
|
android:textSize="20sp" />
|
|
</RelativeLayout>
|
|
|
|
</androidx.cardview.widget.CardView> |