From 31d7592964e52c7220e28f0ed6dc2286c56de1c6 Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Wed, 13 Oct 2021 21:00:24 +0800 Subject: Legacy autoplay video controller UI. --- .../exo_autoplay_playback_control_view_legacy.xml | 90 ++++++ .../res/layout/item_post_card_2_video_autoplay.xml | 2 +- ...ost_card_2_video_autoplay_legacy_controller.xml | 308 +++++++++++++++++++ .../res/layout/item_post_detail_video_autoplay.xml | 2 +- ...ost_detail_video_autoplay_legacy_controller.xml | 325 +++++++++++++++++++++ .../res/layout/item_post_video_type_autoplay.xml | 2 +- ..._post_video_type_autoplay_legacy_controller.xml | 320 ++++++++++++++++++++ app/src/main/res/values/strings.xml | 1 + app/src/main/res/xml/video_preferences.xml | 6 + 9 files changed, 1053 insertions(+), 3 deletions(-) create mode 100644 app/src/main/res/layout/exo_autoplay_playback_control_view_legacy.xml create mode 100644 app/src/main/res/layout/item_post_card_2_video_autoplay_legacy_controller.xml create mode 100644 app/src/main/res/layout/item_post_detail_video_autoplay_legacy_controller.xml create mode 100644 app/src/main/res/layout/item_post_video_type_autoplay_legacy_controller.xml (limited to 'app/src/main/res') diff --git a/app/src/main/res/layout/exo_autoplay_playback_control_view_legacy.xml b/app/src/main/res/layout/exo_autoplay_playback_control_view_legacy.xml new file mode 100644 index 00000000..52899132 --- /dev/null +++ b/app/src/main/res/layout/exo_autoplay_playback_control_view_legacy.xml @@ -0,0 +1,90 @@ + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/item_post_card_2_video_autoplay.xml b/app/src/main/res/layout/item_post_card_2_video_autoplay.xml index 8cb3ef10..1846c3df 100644 --- a/app/src/main/res/layout/item_post_card_2_video_autoplay.xml +++ b/app/src/main/res/layout/item_post_card_2_video_autoplay.xml @@ -29,7 +29,7 @@ android:id="@+id/player_view_item_post_card_2_video_autoplay" android:layout_width="match_parent" android:layout_height="match_parent" - app:show_timeout="1000" + app:show_timeout="1500" app:controller_layout_id="@layout/exo_autoplay_playback_control_view" /> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/item_post_detail_video_autoplay.xml b/app/src/main/res/layout/item_post_detail_video_autoplay.xml index 78396e50..6e6f77b2 100644 --- a/app/src/main/res/layout/item_post_detail_video_autoplay.xml +++ b/app/src/main/res/layout/item_post_detail_video_autoplay.xml @@ -213,7 +213,7 @@ android:id="@+id/player_view_item_post_detail_video_autoplay" android:layout_width="match_parent" android:layout_height="match_parent" - app:show_timeout="1000" + app:show_timeout="1500" app:controller_layout_id="@layout/exo_autoplay_playback_control_view" /> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/item_post_video_type_autoplay.xml b/app/src/main/res/layout/item_post_video_type_autoplay.xml index 0d83ca9f..33bdf97f 100644 --- a/app/src/main/res/layout/item_post_video_type_autoplay.xml +++ b/app/src/main/res/layout/item_post_video_type_autoplay.xml @@ -206,7 +206,7 @@ android:id="@+id/player_view_item_post_video_type_autoplay" android:layout_width="match_parent" android:layout_height="match_parent" - app:show_timeout="1000" + app:show_timeout="1500" app:controller_layout_id="@layout/exo_autoplay_playback_control_view" /> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 7b4121f5..0f7e8f98 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -612,6 +612,7 @@ External Browser Custom Tab Internal Browser + Legacy Video Controller UI Cannot get the link diff --git a/app/src/main/res/xml/video_preferences.xml b/app/src/main/res/xml/video_preferences.xml index d3653e3c..3095c477 100644 --- a/app/src/main/res/xml/video_preferences.xml +++ b/app/src/main/res/xml/video_preferences.xml @@ -55,6 +55,12 @@ app:title="@string/settings_video_autoplay_title" app:useSimpleSummaryProvider="true" /> + +