ورود

View Full Version : راست به چپ شدن



suraty
سه شنبه 10 اسفند 1395, 10:17 صبح
سلام،
به صورت مداوم با راست چین کردن اکشن بار، آیتم های منوی کشویی، اسکرول افقی و ... به مشکل برمی خورم.
راهبردهای متعددی ارائه شده که نیازمند فعال کردن گزینه ای در فایل manifest است.


android:supportRtl="true"


آخرین تجربه ای که از true بودن این گزینه در کار قبلی داشتم. به هم ریختگی و وارونه شدن عناصر صفحه در گوشی هوآوی بود که با false کردن رفع شد.
هم اکنون نیازمند راست به چپ شدن اسکرول افقی شده ام که راه به جایی نبرده است.
پیشنهاد شما چیست؟
آیا true بودن این گزینه دردسرهایی دارد؟
لطفا مرا راهنمایی کنید. ممنونم



android:supportsRtlDeclares whether your application is willing to support right-to-left (RTL) layouts.
If set to true and targetSdkVersion (https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#target) is set to 17 or higher, various RTL APIs will be activated and used by the system so your app can display RTL layouts. If set to false or if targetSdkVersion (https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#target) is set to 16 or lower, the RTL APIs will be ignored or will have no effect and your app will behave the same regardless of the layout direction associated to the user's Locale choice (your layouts will always be left-to-right). The default value of this attribute is false.
This attribute was added in API level 17.

abrenoor
چهارشنبه 11 اسفند 1395, 16:36 عصر
Unfortunately, RTL layout support feature is supported on Android 4.2(API level 17) or above only. For the versions before, you can add a layout folder for RTL layout. For example in layout folder you put LTR version files layout and in layout-ldrtl folder you put RTL version files layout.

suraty
چهارشنبه 11 اسفند 1395, 17:07 عصر
چه سخت! هر چند https://en.wikipedia.org/wiki/Android_version_history توزیع نسخه های مختلف اندروید، نسخه های قدیمی سهم خیلی کمی دارند!
پیشنهاد دیگه ای نیست؟
Rtl را true تنظیم کنم یا نه؟