Java 如何在styles.xml中更改字体方向

Java 如何在styles.xml中更改字体方向,java,android,xml,styles,Java,Android,Xml,Styles,我有语言更改按钮,我想在styles.xml中为每种语言设置字体方向 <!-- Application theme. --> <style name="AppTheme" parent="AppBaseTheme"> <!-- All customizations that are NOT specific to a particular API-level can go here. --> </style> 如何做到这一点?这将在s

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

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


如何做到这一点?

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


android:textDirection=“”

您在文本框中谈论的是从左到右/从右到左吗?注:如果是这样,请查看此博客:仅查看文本视图的文本。因此,例如“!”或“.”将位于右侧这不能应用于所有布局?没有,只是按钮?如果是这样,您还可以在中设置
android:textDirection=“