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:
parent
e9cdc5e952
commit
e77281b99b
@ -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>
|
@ -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>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user