Give screenshots some margin

This way the card views elevation can be displayed
properly and multiple screenshots don't merge together.
This commit is contained in:
Christine Emrich 2017-08-27 17:32:49 +02:00
parent e9cdc5e952
commit e77281b99b
2 changed files with 8 additions and 6 deletions

View File

@ -1,18 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="wrap_content"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
app:cardElevation="3dp"
app:cardBackgroundColor="#ffffff"
android:layout_margin="@dimen/details_screenshot_margin"
android:padding="10dp"
>
app:cardBackgroundColor="#ffffff"
app:cardElevation="3dp">
<ImageView
android:id="@+id/image"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:adjustViewBounds="true"
android:minWidth="@dimen/details_screenshot_width"
android:scaleType="fitCenter"
/>
android:scaleType="fitCenter" />
</android.support.v7.widget.CardView>

View File

@ -13,6 +13,7 @@
<dimen name="details_screenshot_height">200dp</dimen>
<dimen name="details_screenshot_width">200dp</dimen>
<dimen name="details_screenshot_margin">4dp</dimen>
<dimen name="fab_margin">16dp</dimen>