diff options
author | Christian Schneppe <christian@pix-art.de> | 2018-09-23 16:42:56 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2018-09-23 16:42:56 +0200 |
commit | 1e63a8291579043659f86dbb46d4d63d3225c471 (patch) | |
tree | 8f1f2a24aee230eb63364a80ef04d1d7a379d67c /src/main/res/layout/media_preview.xml | |
parent | d159ba22126f7be06f50cb33b677ddcc8786219c (diff) |
preview media before sending them and allow sharing and attaching of multiple files
Diffstat (limited to 'src/main/res/layout/media_preview.xml')
-rw-r--r-- | src/main/res/layout/media_preview.xml | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/main/res/layout/media_preview.xml b/src/main/res/layout/media_preview.xml new file mode 100644 index 000000000..8849e7b4a --- /dev/null +++ b/src/main/res/layout/media_preview.xml @@ -0,0 +1,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_alignParentEnd="true" + android:layout_alignParentRight="true" + android:layout_alignParentTop="true" + android:alpha="?attr/delete_icon_alpha" + android:background="?attr/selectableItemBackgroundBorderless" + android:src="?attr/icon_cancel" /> + </RelativeLayout> +</layout>
\ No newline at end of file |