diff options
author | Alex Ning <chineseperson5@gmail.com> | 2018-10-01 05:45:02 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2018-10-01 05:45:02 +0000 |
commit | 17ccccfa0e80df0eea1894382cfe85f7e47bcaef (patch) | |
tree | 6fff8dae78aab1d490dc51f5fa66273a0c3a2c61 /app/src/main/res/layout/activity_view_image.xml | |
parent | 1bd9ba61c6cccd1fc318f1698fddc0d13e4723cf (diff) | |
download | infinity-for-reddit-17ccccfa0e80df0eea1894382cfe85f7e47bcaef.tar infinity-for-reddit-17ccccfa0e80df0eea1894382cfe85f7e47bcaef.tar.gz infinity-for-reddit-17ccccfa0e80df0eea1894382cfe85f7e47bcaef.tar.bz2 infinity-for-reddit-17ccccfa0e80df0eea1894382cfe85f7e47bcaef.tar.lz infinity-for-reddit-17ccccfa0e80df0eea1894382cfe85f7e47bcaef.tar.xz infinity-for-reddit-17ccccfa0e80df0eea1894382cfe85f7e47bcaef.tar.zst infinity-for-reddit-17ccccfa0e80df0eea1894382cfe85f7e47bcaef.zip |
Add an error view when loading the image fails in ViewImageActivity.
Diffstat (limited to 'app/src/main/res/layout/activity_view_image.xml')
-rw-r--r-- | app/src/main/res/layout/activity_view_image.xml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/app/src/main/res/layout/activity_view_image.xml b/app/src/main/res/layout/activity_view_image.xml index 066557bd..3ffcb7ff 100644 --- a/app/src/main/res/layout/activity_view_image.xml +++ b/app/src/main/res/layout/activity_view_image.xml @@ -20,4 +20,21 @@ android:layout_height="match_parent" app:gest_fillViewport="true" /> + <LinearLayout + android:id="@+id/load_image_error_linear_layout_view_image_activity" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:visibility="gone"> + + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:drawableTop="@drawable/ic_error_outline_white_24dp" + android:layout_gravity="center" + android:gravity="center" + android:textColor="@android:color/white" + android:text="@string/tap_to_retry" /> + + </LinearLayout> + </RelativeLayout> |