UNPKG

@capacitor-community/photoviewer

Version:

PhotoViewer table images with fullscreen and sharing capabilities

62 lines 2.59 kB
<?xml version="1.0" encoding="utf-8"?> <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" > <RelativeLayout android:id="@+id/rlFullscreenImage" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@android:color/black" android:gravity="center"> <ImageView android:id="@+id/ivFullscreenImage" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="@android:color/black" 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> <TextView android:id="@+id/tvGalleryTitle" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="#7f000000" android:textColor="@android:color/white" android:textSize="16sp" android:textStyle="bold" android:padding="0dp" android:gravity="center" android:layout_alignParentBottom="true" tools:text="Gallery Image Title"/> </RelativeLayout> </layout>