cheogram/src/main/res/layout/media_preview.xml
Alex Palaistras aaf5fa816b Reduce minSdkVersion to 16, fix issues reported by lint
This further reduces the minimum API level to 16, which should encompass
most users stuck on older versions of Android (mainly BlackBerry OS and
Jolla users).

Several issues reported by code analysis were fixed, mainly around issues
with layouts.
2018-12-09 21:32:42 +00:00

26 lines
1.1 KiB
XML

<?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:background="@color/black54"
android:layout_centerInParent="true"
android:scaleType="center"
android:layout_margin="12dp"/>
<ImageButton
android:id="@+id/delete_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_alignParentTop="true"
android:alpha="?attr/delete_icon_alpha"
android:background="?attr/selectableItemBackgroundBorderless"
android:src="?attr/icon_cancel"
android:layout_alignParentRight="true" />
</RelativeLayout>
</layout>