43 lines
1.8 KiB
XML
43 lines
1.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
<com.github.chrisbanes.photoview.PhotoView
|
|
android:id="@+id/image"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"/>
|
|
<RelativeLayout
|
|
android:id="@+id/action_buttons"
|
|
android:background="@color/colour_background_transparent"
|
|
android:paddingTop="5dp"
|
|
android:visibility="gone"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
<ImageButton
|
|
android:id="@+id/ib_remove"
|
|
android:background="@null"
|
|
android:padding="3dp"
|
|
android:visibility="gone"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:src="@android:drawable/ic_menu_delete"
|
|
android:layout_toLeftOf="@+id/ib_close"
|
|
android:layout_centerVertical="true"
|
|
android:layout_toStartOf="@+id/ib_close"
|
|
android:elevation="5dp"
|
|
app:srcCompat="@android:drawable/ic_menu_delete"/>
|
|
<ImageButton
|
|
android:id="@+id/ib_close"
|
|
android:background="@null"
|
|
android:padding="3dp"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:src="@android:drawable/ic_menu_close_clear_cancel"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_centerVertical="true"
|
|
android:layout_alignParentEnd="true"
|
|
android:elevation="5dp"
|
|
app:srcCompat="@android:drawable/ic_menu_close_clear_cancel"/>
|
|
</RelativeLayout>
|
|
</RelativeLayout>
|