UNPKG

com-sarriaroman-photoviewer

Version:

This plugin is intended to show a picture from an URL into a Photo Viewer with zoom features.

67 lines (57 loc) 2.49 kB
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:background="#000000" tools:context=".PhotoActivity" > <ProgressBar android:id="@+id/loadingBar" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" /> <ImageView android:id="@+id/photoView" android:layout_width="fill_parent" android:layout_height="fill_parent" android:scaleType="centerInside" android:visibility="invisible" /> <FrameLayout android:layout_width="match_parent" android:layout_height="match_parent" android:fitsSystemWindows="true" > <LinearLayout android:id="@+id/fullscreen_content_controls" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="bottom|center_horizontal" android:background="#50000000" android:orientation="horizontal" tools:ignore="UselessParent" > <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:text="Close" /> <TextView android:layout_width="wrap_content" android:layout_height="match_parent" android:textAppearance="?android:attr/textAppearanceSmall" android:text="" android:id="@+id/titleTxt" android:layout_weight="1" android:textColor="@android:color/primary_text_dark" android:gravity="center_vertical|center_horizontal" /> <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:text="Close" /> </LinearLayout> </FrameLayout> </FrameLayout>