[Android] Allow displaying TV items in list

Nicolas Pomepuy git at videolan.org
Fri Jan 24 09:19:57 CET 2020


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Fri Jan 24 08:36:28 2020 +0100| [ae228f6aa24ac293609ffdfac1199f2adaf6ad25] | committer: Geoffrey Métais

Allow displaying TV items in list

Fixes #936

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

 .../org/videolan/resources/util/HeaderProvider.kt  |   5 +
 .../videolan/television/ui/FileTvItemAdapter.kt    | 123 ++++++++++--
 .../television/ui/MediaBrowserAnimatorDelegate.kt  |  25 ++-
 .../videolan/television/ui/MediaTvItemAdapter.kt   | 101 ++++++++--
 .../television/ui/MoviepediaTvItemAdapter.kt       |  99 +++++++++-
 .../org/videolan/television/ui/TvItemAdapter.kt    |   3 +-
 .../television/ui/browser/BaseBrowserTvFragment.kt | 102 +++++++---
 .../television/ui/browser/FileBrowserTvFragment.kt |  10 +-
 .../ui/browser/MediaBrowserTvFragment.kt           |  13 +-
 .../ui/browser/MoviepediaBrowserTvFragment.kt      |  12 +-
 .../television/ui/browser/TvAdapterUtils.kt        |  64 ++++++
 .../main/res/layout/media_browser_tv_item_list.xml | 219 ++++++++++++++++++++
 .../main/res/layout/movie_browser_tv_item_list.xml | 220 +++++++++++++++++++++
 television/src/main/res/layout/song_browser.xml    |  47 ++++-
 vlc-android/res/color/tv_menu_selection.xml        |  30 +++
 vlc-android/res/drawable/ic_menu_grid_tv.xml       |  33 ++++
 .../res/drawable/ic_menu_grid_tv_normal.xml        |  33 ++++
 vlc-android/res/drawable/ic_menu_list_tv.xml       |  34 ++++
 .../res/drawable/ic_menu_list_tv_normal.xml        |  34 ++++
 .../gui/view/RecyclerSectionItemGridDecoration.kt  |  17 +-
 20 files changed, 1136 insertions(+), 88 deletions(-)

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


More information about the Android mailing list