From 13a2ccac2c1258c2de6ff9ef8e97b1121f7b7b26 Mon Sep 17 00:00:00 2001 From: Gilbert Kimutai Date: Mon, 8 Apr 2019 04:28:33 +0300 Subject: [PATCH] Further formatting of UI to fit longer images with white background --- app/src/main/res/layout/content_product.xml | 2 +- .../main/res/layout/single_home_product_item.xml | 16 ++++++++-------- app/src/main/res/layout/single_product_image.xml | 4 +++- app/src/main/res/layout/single_product_item.xml | 8 +++++--- 4 files changed, 17 insertions(+), 13 deletions(-) diff --git a/app/src/main/res/layout/content_product.xml b/app/src/main/res/layout/content_product.xml index 2b049e6..4730ed8 100644 --- a/app/src/main/res/layout/content_product.xml +++ b/app/src/main/res/layout/content_product.xml @@ -19,7 +19,7 @@ + android:textSize="16sp"/> + android:textColor="@color/colorPrimary" + android:textSize="16sp"/> diff --git a/app/src/main/res/layout/single_product_image.xml b/app/src/main/res/layout/single_product_image.xml index ec29329..e23ac29 100644 --- a/app/src/main/res/layout/single_product_image.xml +++ b/app/src/main/res/layout/single_product_image.xml @@ -3,5 +3,7 @@ xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" + android:padding="32dp" + android:background="#ffffff" android:id="@+id/ivImage" - android:scaleType="centerCrop"/> \ No newline at end of file + android:scaleType="center"/> \ No newline at end of file diff --git a/app/src/main/res/layout/single_product_item.xml b/app/src/main/res/layout/single_product_item.xml index 339193c..9910c78 100644 --- a/app/src/main/res/layout/single_product_item.xml +++ b/app/src/main/res/layout/single_product_item.xml @@ -14,13 +14,15 @@ + android:layout_height="200dp"> + android:textSize="16sp"/>