[Android] Use ItemDecoration for the headers. They are now sticky.

Nicolas Pomepuy git at videolan.org
Mon Feb 18 15:53:54 CET 2019


vlc-android | branch: master | Nicolas Pomepuy <nicolas.pomepuy at gmail.com> | Mon Feb 18 09:43:33 2019 +0100| [f064652c1d02f0a6b751f6194d9a63dfc3522b39] | committer: Geoffrey Métais

Use ItemDecoration for the headers. They are now sticky.

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

 vlc-android/res/layout/audio_browser_item.xml      | 100 +++++++++---------
 vlc-android/res/layout/recycler_section_header.xml |  13 +++
 vlc-android/res/values/dimens.xml                  |   1 +
 .../src/org/videolan/vlc/gui/PlaylistActivity.java |   2 +-
 .../src/org/videolan/vlc/gui/PlaylistFragment.kt   |   4 +-
 .../vlc/gui/audio/AudioAlbumsSongsFragment.java    |  34 ++++---
 .../vlc/gui/audio/AudioBrowserAdapter.java         |  14 +--
 .../vlc/gui/audio/AudioBrowserFragment.java        |  10 +-
 .../vlc/gui/view/RecyclerSectionItemDecoration.kt  | 112 +++++++++++++++++++++
 .../videolan/vlc/viewmodels/paged/MLPagedModel.kt  |  30 ++++--
 10 files changed, 230 insertions(+), 90 deletions(-)

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


More information about the Android mailing list