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

java - Android RTL print canvas layout - Stack Overflow

programmeradmin4浏览0评论

Is there a way to make Android print Canvas RTL? Make the canvas.drawText() behave for RTL (right to left text, like Arabic and Hebrew)? (And RTL alignment should be set to always left (so that numeric columns also remain right aligned)).

  • Page layout flipped (count positions from right instead of left)
  • Text typed right (RTL), that it looks to do already on non-flipped layouts

Like for:

  • Android app screen RTL: AppCompatDelegate.setApplicationLocales(LocaleListCompat.create(Locale.forLanguageTag(sLang)));
  • Windows winapi app screen RTL: SetProcessDefaultLayout(LAYOUT_RTL);
  • Windows winapi print RTL:
    SetLayout(pdPrint.hDC, LAYOUT_RTL);

Or is this something I must do myself?

发布评论

评论列表(0)

  1. 暂无评论