@capacitor-community/photoviewer
Version:
PhotoViewer table images with fullscreen and sharing capabilities
50 lines (49 loc) • 2.08 kB
text/xml
<layout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
>
<data>
</data>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".ImageFragment">
<RelativeLayout
android:id="@+id/rlTouchImage"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/black"
android:gravity="center">
<com.ortiz.touchview.TouchImageView
android:id="@+id/ivTouchImage"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:scaleType="fitCenter"/>
</RelativeLayout>
<RelativeLayout
android:id="@+id/menuBtns"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true">
<ImageButton
android:id="@+id/shareBtn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@android:color/transparent"
android:src="@android:drawable/ic_menu_share"
android:padding="8dp"
android:layout_alignParentLeft="true"
android:text="@string/share" />
<ImageButton
android:id="@+id/closeBtn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@android:color/transparent"
android:src="@android:drawable/ic_menu_close_clear_cancel"
android:padding="8dp"
android:layout_alignParentRight="true"
android:text="@string/close" />
</RelativeLayout>
</RelativeLayout>
</layout>