[Android] Use ViewPager2 for Onboarding to support RTL

Habib Kazemi git at videolan.org
Tue Jan 5 08:08:18 UTC 2021


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

Use ViewPager2 for Onboarding to support RTL

Fixes #1578 problem 1

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

 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/3557ff11d02725aef910339ec2fd8852836b40f5


More information about the Android mailing list