daffa_usman/Suplement File/item_product_recycler.xml
2024-12-31 09:45:13 +07:00

91 lines
3.2 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="wrap_content"
android:layout_margin="5dp"
android:elevation="8dp"
app:cardCornerRadius="4dp">
<LinearLayout
android:id="@+id/list_item"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#FFFFFF"
android:gravity="center_vertical"
android:orientation="horizontal"
android:padding="12dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:background="#FFFFFF"
android:gravity="center_vertical"
android:orientation="horizontal">
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginRight="12dp"
android:layout_weight="1"
android:gravity="center_vertical"
android:orientation="vertical">
<TextView
android:id="@+id/ProductID"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="product id"
android:textColor="#212121"
android:textSize="14dp"
android:visibility="gone" />
<TextView
android:id="@+id/ProductName"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/hint_product_name"
android:textColor="#212121"
android:textSize="14dp" />
<TextView
android:id="@+id/ProductPrice"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:text="@string/hint_product_price"
android:textColor="#212121"
android:textSize="14dp" />
</LinearLayout>
<TextView
android:id="@+id/TextButton"
android:layout_width="100dp"
android:layout_height="40dp"
android:background="#4CAF50"
android:gravity="center"
android:text="DETAIL PRODUCT"
android:textColor="@color/white"
android:textSize="14dp" />
<Button
android:id="@+id/ButtonDelete"
android:layout_width="100dp"
android:layout_height="40dp"
android:background="#673AB7"
android:gravity="center"
android:text="Delete"
android:textColor="@color/white"
android:textSize="14sp" />
</LinearLayout>
</LinearLayout>
</androidx.cardview.widget.CardView>