From 9e748b66ad6b156257dd10fd99b1530989fb31af Mon Sep 17 00:00:00 2001 From: fikrimilano Date: Fri, 24 Feb 2023 11:02:35 +0700 Subject: [PATCH] Create independent margin for item media image --- datacapture/src/main/res/layout/media_view.xml | 4 ++-- datacapture/src/main/res/values/dimens.xml | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/datacapture/src/main/res/layout/media_view.xml b/datacapture/src/main/res/layout/media_view.xml index 5ff7c4e486..5948d5ba53 100644 --- a/datacapture/src/main/res/layout/media_view.xml +++ b/datacapture/src/main/res/layout/media_view.xml @@ -11,8 +11,8 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_horizontal" - android:layout_marginHorizontal="@dimen/item_margin_horizontal" - android:layout_marginVertical="@dimen/item_margin_vertical" + android:layout_marginHorizontal="@dimen/item_media_image_margin_horizontal" + android:layout_marginVertical="@dimen/item_media_image_margin_vertical" android:adjustViewBounds="true" android:maxWidth="@dimen/item_media_image_max_width" android:maxHeight="@dimen/item_media_image_max_height" diff --git a/datacapture/src/main/res/values/dimens.xml b/datacapture/src/main/res/values/dimens.xml index a22e042bfe..f687f4ea43 100644 --- a/datacapture/src/main/res/values/dimens.xml +++ b/datacapture/src/main/res/values/dimens.xml @@ -96,6 +96,8 @@ 48dp + 16dp + 8dp 200dp 200dp