Last active
November 3, 2015 13:16
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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