67 lines
2.4 KiB
XML
67 lines
2.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:card_view="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<androidx.cardview.widget.CardView
|
|
android:id="@+id/cardview"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="center"
|
|
android:elevation="5dp"
|
|
card_view:cardUseCompatPadding="true"
|
|
card_view:cardElevation="5dp"
|
|
card_view:cardCornerRadius="1dp"
|
|
>
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<ImageView
|
|
android:id="@+id/productimage"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="200dp"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:scaleType="centerCrop"
|
|
android:background="?attr/selectableItemBackgroundBorderless"/>
|
|
|
|
<TextView
|
|
android:id="@+id/productname"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@id/productimage"
|
|
android:paddingLeft="5dp"
|
|
android:paddingRight="5dp"
|
|
android:paddingTop="5dp"
|
|
android:textColor="#000000"
|
|
/>
|
|
|
|
<TextView
|
|
android:id="@+id/productretailer"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@id/productname"
|
|
android:paddingLeft="5dp"
|
|
android:paddingRight="5dp"
|
|
android:paddingTop="5dp"
|
|
android:textColor="#000000" />
|
|
|
|
<TextView
|
|
android:id="@+id/productprice"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@id/productretailer"
|
|
android:paddingLeft="5dp"
|
|
android:paddingRight="5dp"
|
|
android:paddingTop="5dp"
|
|
android:textColor="#000000"
|
|
android:textStyle="bold" />
|
|
</RelativeLayout>
|
|
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
</LinearLayout>
|