diff options
author | Alex Ning <chineseperson5@gmail.com> | 2020-06-03 13:58:45 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2020-06-03 13:58:45 +0000 |
commit | 470a59e104c07a58ad9859ec22f2734d337aa633 (patch) | |
tree | 8cd000e5f3c174ec37ab20f27425b5cb2c528337 /app/src/main/res | |
parent | 13d64eda146f8fcfe0572274b42db83e4ede7534 (diff) | |
download | infinity-for-reddit-470a59e104c07a58ad9859ec22f2734d337aa633.tar infinity-for-reddit-470a59e104c07a58ad9859ec22f2734d337aa633.tar.gz infinity-for-reddit-470a59e104c07a58ad9859ec22f2734d337aa633.tar.bz2 infinity-for-reddit-470a59e104c07a58ad9859ec22f2734d337aa633.tar.lz infinity-for-reddit-470a59e104c07a58ad9859ec22f2734d337aa633.tar.xz infinity-for-reddit-470a59e104c07a58ad9859ec22f2734d337aa633.tar.zst infinity-for-reddit-470a59e104c07a58ad9859ec22f2734d337aa633.zip |
Show a progress bar in ViewVideoActivity if it is a gfycat video and in ViewImgurMediaActivity.
Diffstat (limited to 'app/src/main/res')
-rw-r--r-- | app/src/main/res/layout/activity_view_imgur_media.xml | 18 | ||||
-rw-r--r-- | app/src/main/res/layout/activity_view_video.xml | 7 |
2 files changed, 25 insertions, 0 deletions
diff --git a/app/src/main/res/layout/activity_view_imgur_media.xml b/app/src/main/res/layout/activity_view_imgur_media.xml index 8b6fa101..96936001 100644 --- a/app/src/main/res/layout/activity_view_imgur_media.xml +++ b/app/src/main/res/layout/activity_view_imgur_media.xml @@ -16,4 +16,22 @@ android:id="@+id/view_pager_view_imgur_media_activity" tools:context=".Activity.ViewImgurMediaActivity" /> + <LinearLayout + android:id="@+id/load_image_error_linear_layout_view_imgur_media_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/error_loading_image_tap_to_retry" + android:textSize="?attr/font_default" /> + + </LinearLayout> + </RelativeLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/activity_view_video.xml b/app/src/main/res/layout/activity_view_video.xml index 8f23ea26..7d94d800 100644 --- a/app/src/main/res/layout/activity_view_video.xml +++ b/app/src/main/res/layout/activity_view_video.xml @@ -15,4 +15,11 @@ android:layout_height="match_parent" app:controller_layout_id="@layout/exo_playback_control_view"/> + <ProgressBar + android:id="@+id/progress_bar_view_video_activity" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_centerInParent="true" + android:visibility="gone" /> + </RelativeLayout> |