Skip to content

Commit

Permalink
Create independent margin for item media image
Browse files Browse the repository at this point in the history
  • Loading branch information
FikriMilano committed Feb 24, 2023
1 parent dd4a39b commit 9e748b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions datacapture/src/main/res/layout/media_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 2 additions & 0 deletions datacapture/src/main/res/values/dimens.xml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@
<dimen name="item_answer_media_image_size">48dp</dimen>

<!-- Item Media -->
<dimen name="item_media_image_margin_horizontal">16dp</dimen>
<dimen name="item_media_image_margin_vertical">8dp</dimen>
<dimen name="item_media_image_max_height">200dp</dimen>
<dimen name="item_media_image_max_width">200dp</dimen>

Expand Down

0 comments on commit 9e748b6

Please sign in to comment.