最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

java - Set RTL in one Layout but not in others in the same app? - Stack Overflow

programmeradmin0浏览0评论

AppCompatDelegate.setApplicationLocales(LocaleListCompat.create(Locale.forLanguageTag(sLang))); is nice to set RTL layouts in apps, works fine.

But I have an Android app with a TabLayout with pagers and an extended BaseAdapter with text data tables made of text cells (writing them line by line). Same base adapter used for all tab pages but with different data.

The different BaseAdapter can even be with the same data with different filter settings (showing the same data more or less).

  • It would be interesting if the base adapter could have different locales (LTR or RTL) for each tab page? Same page in English and Urdu text and layout as two different tab-pages for example?
  • AppCompatDelegate.setApplicationLocales() changes the whole app?
  • Any good suggestion if it is possible?
  • I guess I'm not the only one asking for that, like in translation text apps, I guess it's needed?
发布评论

评论列表(0)

  1. 暂无评论