From 4678caa92bad919201b53000e8d4100bf253c497 Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Thu, 30 Apr 2020 15:29:56 +0800 Subject: Add an option for video autoplay. Rewrite some viewholders in PostRecyclerViewAdapter. --- .../layout/exo_autoplay_playback_control_view.xml | 2 - app/src/main/res/layout/fragment_post.xml | 6 - app/src/main/res/layout/item_post_gif_type.xml | 314 -------------------- .../item_post_image_and_gif_autoplay_type.xml | 313 ++++++++++++++++++++ app/src/main/res/layout/item_post_image_type.xml | 314 -------------------- .../item_post_video_and_gif_preview_type.xml | 328 +++++++++++++++++++++ 6 files changed, 641 insertions(+), 636 deletions(-) delete mode 100644 app/src/main/res/layout/item_post_gif_type.xml create mode 100644 app/src/main/res/layout/item_post_image_and_gif_autoplay_type.xml delete mode 100644 app/src/main/res/layout/item_post_image_type.xml create mode 100644 app/src/main/res/layout/item_post_video_and_gif_preview_type.xml (limited to 'app/src/main/res/layout') diff --git a/app/src/main/res/layout/exo_autoplay_playback_control_view.xml b/app/src/main/res/layout/exo_autoplay_playback_control_view.xml index 99cab8e2..1adc685e 100644 --- a/app/src/main/res/layout/exo_autoplay_playback_control_view.xml +++ b/app/src/main/res/layout/exo_autoplay_playback_control_view.xml @@ -7,8 +7,6 @@ android:gravity="bottom" android:paddingStart="16dp" android:paddingEnd="16dp" - android:paddingBottom="16dp" - android:background="@color/transparentActionBarAndExoPlayerControllerColor" android:orientation="vertical"> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/app/src/main/res/layout/item_post_image_and_gif_autoplay_type.xml b/app/src/main/res/layout/item_post_image_and_gif_autoplay_type.xml new file mode 100644 index 00000000..b2fdf016 --- /dev/null +++ b/app/src/main/res/layout/item_post_image_and_gif_autoplay_type.xml @@ -0,0 +1,313 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/item_post_image_type.xml b/app/src/main/res/layout/item_post_image_type.xml deleted file mode 100644 index 6ca140d3..00000000 --- a/app/src/main/res/layout/item_post_image_type.xml +++ /dev/null @@ -1,314 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/app/src/main/res/layout/item_post_video_and_gif_preview_type.xml b/app/src/main/res/layout/item_post_video_and_gif_preview_type.xml new file mode 100644 index 00000000..c3549df4 --- /dev/null +++ b/app/src/main/res/layout/item_post_video_and_gif_preview_type.xml @@ -0,0 +1,328 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file -- cgit v1.2.3