[Android] New widgets implementation

Nicolas Pomepuy git at videolan.org
Wed May 18 09:57:55 UTC 2022


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Thu May  5 11:59:43 2022 +0200| [be39f82a2018453060d9395d8fd7533eb72ace86] | committer: Duncan McNamara

New widgets implementation

> https://code.videolan.org/videolan/vlc-android/commit/be39f82a2018453060d9395d8fd7533eb72ace86
---

 .../org/videolan/mobile/app/AppSetupDelegate.kt    |   5 +
 .../main/java/org/videolan/resources/Constants.kt  |   3 +
 .../src/main/res/drawable-nodpi/vlc_fake_cover.png | Bin 0 -> 24136 bytes
 .../main/res/drawable/round_white_transparent.xml  |  30 ++
 .../rounded_top_corners_left_background.xml        |  33 ++
 .../rounded_top_corners_left_background_dark.xml   |  33 ++
 .../src/main/res/drawable/widget_circle.xml        |  31 ++
 .../src/main/res/drawable/widget_pill_neutral.xml  |  32 ++
 .../main/res/drawable/widget_plain_background.xml  |  28 ++
 .../res/drawable/widget_rectangle_background.xml   |  29 ++
 .../src/main/res/drawable/widget_round_white.xml   |  30 ++
 .../resources/src/main/res/values/arrays.xml       |  12 +
 .../resources/src/main/res/values/attrs.xml        |   1 +
 .../resources/src/main/res/values/strings.xml      |  18 +-
 application/vlc-android/AndroidManifest.xml        |  28 ++
 application/vlc-android/build.gradle               |   1 +
 .../res/drawable/widget_touch_background.xml       |  31 ++
 .../res/layout/widget_content_full_player.xml      | 145 ++++++
 .../vlc-android/res/layout/widget_macro.xml        |  88 ++++
 .../vlc-android/res/layout/widget_micro.xml        |  87 ++++
 application/vlc-android/res/layout/widget_mini.xml | 135 ++++++
 .../res/layout/widget_mini_player_configure.xml    |  84 ++++
 application/vlc-android/res/layout/widget_pill.xml |  87 ++++
 application/vlc-android/res/values-v29/styles.xml  |   9 +
 application/vlc-android/res/values/styles.xml      |   9 +
 .../vlc-android/res/xml/preferences_widgets.xml    |  80 ++++
 .../vlc-android/res/xml/widget_provider_mini.xml   |  37 ++
 .../src/org/videolan/vlc/PlaybackService.kt        |  87 ++--
 .../gui/preferences/widgets/PreferencesWidgets.kt  | 158 +++++++
 .../videolan/vlc/repository/WidgetRepository.kt    |  10 +-
 .../vlc/widget/MiniPlayerAppWidgetProvider.kt      | 487 +++++++++++++++++++++
 .../vlc/widget/MiniPlayerConfigureActivity.kt      | 156 +++++++
 .../src/org/videolan/vlc/widget/WidgetViewModel.kt |  48 ++
 .../org/videolan/vlc/widget/utils/WidgetCache.kt   |  61 +++
 .../org/videolan/vlc/widget/utils/WidgetUtils.kt   |  97 ++--
 35 files changed, 2128 insertions(+), 82 deletions(-)

Diff:   https://code.videolan.org/videolan/vlc-android/commit/be39f82a2018453060d9395d8fd7533eb72ace86


More information about the Android mailing list