【问题标题】:how to change font direction inside styles.xml如何更改styles.xml中的字体方向
【发布时间】:2013-05-13 18:51:39
【问题描述】:

我有语言更改按钮,我想在 styles.xml 中为每种语言设置字体方向。

<!-- Application theme. -->
<style name="AppTheme" parent="AppBaseTheme">
    <!-- All customizations that are NOT specific to a particular API-level can go here. -->
</style>

怎么做?

【问题讨论】:

  • 您是在说文本框中的从左到右/从右到左吗?附:如果是这样,请查看此博客:android-developers.blogspot.de/2013/03/…
  • 只是 TextView 的文本。所以 ”!”或者 ”。”例如将在右侧

标签: java android xml styles


【解决方案1】:

这将在styles.xml 中设置文本的方向,但必须在每个按钮中完成

android:textDirection=""

【讨论】:

  • 这不能应用于所有布局?没有按钮?如果是这样,如何
  • 也可以在中设置android:textDirection=""
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2016-10-30
  • 1970-01-01
  • 1970-01-01
  • 2017-11-29
  • 2018-05-04
  • 2017-11-27
  • 1970-01-01
相关资源
最近更新 更多