Can I change the swipe direction of Tabs in TabLayout by code?
It works fine when my device's language is English, But when I change it to Arabic, A lot of tabs disappear and the swipe's direction still the same (to The Right ). Note: In Manifest file support RTL option is "true".
TabLayout provides a horizontal layout to display tabs. Population of the tabs to display is done through TabLayout.
A TabLayout provides a way to display tabs horizontally.
You can easily change layoutDirection
. i had this problem too and fix by :
tabLayout.setLayoutDirection(View.LAYOUT_DIRECTION_LTR);
Just try it!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With