2013-05-13 36 views
0

我有語言changhing按鈕,我想在styles.xml中也爲每種語言設置字體方向。如何更改styles.xml中的字體方向

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

該怎麼辦?

+0

你說的是做左到右/右到左在文本框?附:如果是這樣,請檢查此博客:http://android-developers.blogspot.de/2013/03/native-rtl-support-in-android-42.html – Trinimon 2013-05-13 18:53:54

+0

只是TextView的文本。所以「!」要麼 」。」例如將在右側 – 2013-05-13 18:54:57

回答

0

這將設置在styles.xml文字的方向,但它在每一個按鈕

android:textDirection=""

+0

這不能適用於所有佈局?沒有隻是按鈕?如果是這樣, – 2013-05-13 19:50:23

+0

您還可以在中設置'android:textDirection =「」' – Wannabe 2013-05-13 19:57:44