aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/res/layout/media_preview.xml
blob: e798f15ecd974430cd19d0360581b10bf4fd46b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android">

    <RelativeLayout
        android:layout_width="wrap_content"
        android:layout_height="wrap_content">

        <ImageView
            android:id="@+id/media_preview"
            android:layout_width="@dimen/media_preview_size"
            android:layout_height="@dimen/media_preview_size"
            android:layout_centerInParent="true"
            android:layout_margin="12dp"
            android:background="@color/black54"
            android:scaleType="center" />

        <ImageButton
            android:id="@+id/delete_button"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentTop="true"
            android:layout_alignParentEnd="true"
            android:layout_alignParentRight="true"
            android:alpha="?attr/delete_icon_alpha"
            android:background="?attr/selectableItemBackgroundBorderless"
            android:src="?attr/icon_cancel" />
    </RelativeLayout>
</layout>