aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout/activity_view_post_detail.xml
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/res/layout/activity_view_post_detail.xml')
-rw-r--r--app/src/main/res/layout/activity_view_post_detail.xml29
1 files changed, 23 insertions, 6 deletions
diff --git a/app/src/main/res/layout/activity_view_post_detail.xml b/app/src/main/res/layout/activity_view_post_detail.xml
index c3a1c688..025f8ef1 100644
--- a/app/src/main/res/layout/activity_view_post_detail.xml
+++ b/app/src/main/res/layout/activity_view_post_detail.xml
@@ -144,12 +144,6 @@
android:layout_marginTop="16dp"
android:visibility="gone">
- <ProgressBar
- android:id="@+id/progress_bar_view_post_detail"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerInParent="true" />
-
<ImageView
android:id="@+id/image_view_view_post_detail"
android:layout_width="match_parent"
@@ -157,6 +151,29 @@
android:adjustViewBounds="true"
android:scaleType="fitStart"/>
+ <RelativeLayout
+ android:id="@+id/load_wrapper_view_post_detail"
+ android:layout_width="match_parent"
+ android:layout_height="100dp">
+
+ <ProgressBar
+ android:id="@+id/progress_bar_view_post_detail"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_centerInParent="true" />
+
+ <TextView
+ android:id="@+id/load_image_error_text_view_view_post_detail"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:drawableTop="@drawable/ic_error_outline_black_24dp"
+ android:layout_centerInParent="true"
+ android:gravity="center"
+ android:text="@string/tap_to_retry"
+ android:visibility="gone" />
+
+ </RelativeLayout>
+
</RelativeLayout>
<ImageView