2017-06-17 12 views
-1

プログラム以外の言語に基づいて戻るボタンの方向を変更する方法はありますか?Android - プログラムではない言語に基づいて戻るボタンを変更する(英語とアラビア語)

I want this icon for English

私はアラビア語

+0

画像を反転しますmenfestのrtl = true –

+0

アンドロイド:supportsRtl = "true"が既に追加されています。ボタンを戻すのに欠けているものはありますか? –

+0

は上の画像はベクトル画像ですか? –

答えて

-1

ためのこの1つはあなたがあなたの言語要件に基づいて画像を反転させることができたい英語

I want this one for Arabic

ため、このアイコンをしたいです。あなたはベクトルDrawableのことで使用することができますMatrix.postRotate()

+0

プログラム的ですか? –

0

を使用してみてください、

はちょうどアンドロイドを設定します。autoMirroredは= "true" をそれがサポートを追加

<vector xmlns:android="http://schemas.android.com/apk/res/android" 
android:width="8dp" 
android:height="18dp" 
android:autoMirrored="true" 
android:viewportHeight="15.0" 
android:viewportWidth="9.0"> 
<path 
    android:fillColor="#00000000" 
    android:fillType="evenOdd" 
    android:pathData="M8,1l-7,6.5l7,6.5" 
    android:strokeColor="#6D6D6D" 
    android:strokeLineCap="round" 
    android:strokeLineJoin="round" 
    android:strokeWidth="2" /> 

関連する問題