[Android] Use ViewPager2 for Onboarding to support RTL

Habib Kazemi git at videolan.org
Wed Jan 20 09:54:27 UTC 2021


vlc-android | branch: 3.3.x | Habib Kazemi <kazemihabib1996 at gmail.com> | Thu Dec 31 18:02:06 2020 +0330| [b725d447ed94c0493b4a52bc087f6c44a54b010e] | committer: Nicolas Pomepuy

Use ViewPager2 for Onboarding to support RTL

Fixes #1578 problem 1

(cherry picked from commit 3557ff11d02725aef910339ec2fd8852836b40f5)

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

 application/vlc-android/build.gradle               |  2 +
 .../vlc-android/res/layout/activity_onboarding.xml |  2 +-
 .../vlc-android/res/layout/onboarding_folders.xml  |  3 +-
 .../vlc/gui/onboarding/OnboardingActivity.kt       | 31 +++++++------
 .../gui/onboarding/OnboardingFoldersFragment.kt    | 17 --------
 .../onboarding/OnboardingFragmentPagerAdapter.kt   | 51 ++++++++++++++--------
 .../videolan/vlc/gui/view/NonSwipeableViewPager.kt | 31 -------------
 build.gradle                                       |  1 +
 8 files changed, 55 insertions(+), 83 deletions(-)

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


More information about the Android mailing list