Skip to content

Instantly share code, notes, and snippets.

@rajohns08
Last active November 3, 2015 13:16
Show Gist options
  • Save rajohns08/43e6c37c6e2c7b7b739f to your computer and use it in GitHub Desktop.
Save rajohns08/43e6c37c6e2c7b7b739f to your computer and use it in GitHub Desktop.
Android - For showing a full screen image for something like a detail photo view of photo in a gallery
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:id="@+id/image_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:scaleType="fitXY"
android:adjustViewBounds="true"
android:layout_gravity="center"/>
<TextView
android:id="@+id/loading_text_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="Loading..."
android:textColor="@color/gray"/>
</FrameLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment