-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add RTL layout support #7652
Add RTL layout support #7652
Conversation
* supportsRtl="true" * replace Left/ Right properties with Start/ End * tabs: * layoutDirection="ltr" for <TabsLayout> * reverse items for RTL in PagerAdapter * properties for force right in RTL: * textAlignment="viewStart" * textDirection="anyRtl"
* export getLayoutPosition() & isRTL() to LocalizeLayoutUtil class
* fix info section direction in report error page * fix margin at the feed group carousel in subscriptions page
Regarding this suggestion from #3488:
I don't think we should merge |
Indeed. |
The CI is failing because of this line: NewPipe/app/src/androidTest/java/org/schabi/newpipe/local/history/HistoryRecordManagerTest.kt Line 71 in dd9772c
On first look this doesn't seem to be related to the PR, but no such failure is present on Edit: this is probably #7553. |
Kudos, SonarCloud Quality Gate passed! |
…-rtl-layout-support
This makes things simpler. For instance, there's no need to worry anymore about the seekbar preview.
…-rtl-layout-support
If I want to always use LTR in certain places, is it better to use |
@mhmdanas probably
No, but if you find a way to solve it it's better ;-) |
The player is too complicated for me to touch in this PR, so I'll try to leave it as-is for now, and perhaps open an issue when this PR is merged. |
I don't think I'll be picking this up, so I'll be closing it (though I'd be happy to see someone else finish up the work). |
What is it?
Description of the changes in your PR
Add RTL layout support to NewPipe.
Based on #3488 by @Royosef (thank you for your work!). Differences:
AboutActivity
, since ViewPager2 supports RTL nativelyIssues to fix:
fast-forward/reverse seek in player (double taps) are not reversed accordinglyseekbar isn't flipped anymore, so this isn't necessary (it might be necessary to investigate the player more closely in general)Before/After Screenshots/Screen Record
Fixes the following issue(s)
APK testing
The APK can be found by going to the "Checks" tab below the title. On the left pane, click on "CI", scroll down to "artifacts" and click "app" to download the zip file which contains the debug APK of this PR.
Due diligence
NOTE: SQUASH MERGE