Commit 85875ede authored by iman Fauzi's avatar iman Fauzi

fail

parent 806a45c1
...@@ -23,7 +23,8 @@ ...@@ -23,7 +23,8 @@
<RelativeLayout <RelativeLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="wrap_content"
android:layout_marginHorizontal="5dp">
<com.google.android.material.card.MaterialCardView <com.google.android.material.card.MaterialCardView
android:layout_width="match_parent" android:layout_width="match_parent"
...@@ -44,6 +45,7 @@ ...@@ -44,6 +45,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:adjustViewBounds="true" android:adjustViewBounds="true"
android:src="@mipmap/ic_meser_icon" android:src="@mipmap/ic_meser_icon"
android:scaleType="fitXY"
app:url="@{image}"/> app:url="@{image}"/>
<ImageView <ImageView
...@@ -66,16 +68,14 @@ ...@@ -66,16 +68,14 @@
android:id="@+id/title_product" android:id="@+id/title_product"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
app:layout_constraintTop_toBottomOf="@id/image_product"
app:layout_constraintStart_toStartOf="parent"
tools:text="@tools:sample/full_names"
android:textColor="@android:color/black" android:textColor="@android:color/black"
android:textSize="18sp" android:textSize="18sp"
android:lines="1" android:lines="1"
android:textStyle="bold" android:textStyle="bold"
android:text="@{products.productName}" android:text="@{products.productName}"
android:maxLength="25" android:maxLength="25"
android:layout_below="@id/image_product"/> android:layout_below="@id/image_product"
tools:text="@tools:sample/full_names"/>
<TextView <TextView
android:id="@+id/price" android:id="@+id/price"
...@@ -95,18 +95,17 @@ ...@@ -95,18 +95,17 @@
android:id="@+id/status" android:id="@+id/status"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_above="@+id/materialBtnAddCart"
android:layout_toRightOf="@id/price"
android:layout_marginBottom="5dp"
android:lines="1"
android:maxLength="25"
android:paddingHorizontal="10dp" android:paddingHorizontal="10dp"
android:text="@{status}"
android:textAllCaps="true"
android:textColor="@android:color/black" android:textColor="@android:color/black"
android:textSize="10sp" android:textSize="10sp"
android:lines="1" tools:text="@tools:sample/full_names" />
android:textAllCaps="true"
android:text="@{status}"
android:maxLength="25"
android:layout_toEndOf="@id/price"
android:layout_above="@id/materialBtnAddCart"
android:layout_marginLeft="15dp"
android:layout_marginBottom="5dp"
tools:text="@tools:sample/full_names"/>
<com.google.android.material.button.MaterialButton <com.google.android.material.button.MaterialButton
android:id="@+id/materialBtnAddCart" android:id="@+id/materialBtnAddCart"
...@@ -114,6 +113,7 @@ ...@@ -114,6 +113,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_below="@id/price" android:layout_below="@id/price"
android:layout_marginTop="10dp"
android:text="Add To Cart"/> android:text="Add To Cart"/>
</RelativeLayout> </RelativeLayout>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment