From e5d9f93e96a0876676a75e31ebea29e4071c580a Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Thu, 4 Jun 2020 20:06:01 +0800 Subject: Swipe up or down to finish ViewImgurMediaActivity. Using Hauler to do swipe up or down to finish ViewImageActivity, ViewGIFActivity and ViewVideoActivity. Fixed gifs downloaded as jpg. --- app/src/main/res/layout/activity_view_gif.xml | 70 +++++++++++++--------- app/src/main/res/layout/activity_view_image.xml | 70 +++++++++++++--------- .../main/res/layout/activity_view_imgur_media.xml | 70 +++++++++++++--------- app/src/main/res/layout/activity_view_video.xml | 40 +++++++++---- app/src/main/res/values/styles.xml | 9 ++- 5 files changed, 160 insertions(+), 99 deletions(-) (limited to 'app/src/main/res') diff --git a/app/src/main/res/layout/activity_view_gif.xml b/app/src/main/res/layout/activity_view_gif.xml index cce51370..695ebc95 100644 --- a/app/src/main/res/layout/activity_view_gif.xml +++ b/app/src/main/res/layout/activity_view_gif.xml @@ -1,42 +1,56 @@ - - - - + android:fillViewport="true"> - - - + android:layout_height="match_parent"> + + + + + + + + + + + + - + - + \ No newline at end of file diff --git a/app/src/main/res/layout/activity_view_image.xml b/app/src/main/res/layout/activity_view_image.xml index 8486d543..3b1b2e8c 100644 --- a/app/src/main/res/layout/activity_view_image.xml +++ b/app/src/main/res/layout/activity_view_image.xml @@ -1,41 +1,55 @@ - - - - + android:fillViewport="true"> - - - + android:layout_height="match_parent"> + + + + + + + + + + + + - + - + \ No newline at end of file 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 96936001..e6d6e67c 100644 --- a/app/src/main/res/layout/activity_view_imgur_media.xml +++ b/app/src/main/res/layout/activity_view_imgur_media.xml @@ -1,37 +1,53 @@ - + android:layout_height="match_parent" + app:dragUpEnabled="true" + tools:context=".Activity.ViewImgurMediaActivity"> - - - + android:fillViewport="true"> - - - + android:layout_height="match_parent"> + + + + + + + + + + + + - + - \ No newline at end of file + \ 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 7d94d800..2907fd4d 100644 --- a/app/src/main/res/layout/activity_view_video.xml +++ b/app/src/main/res/layout/activity_view_video.xml @@ -1,25 +1,39 @@ - - + android:fillViewport="true"> - + - + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index 5634d70e..a7e31f71 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -32,10 +32,13 @@ @android:color/transparent -