2012-05-14 5 views
0

Texviewのデフォルトフォントはアラビア語をひどくレンダリングします。android:textAppearance for Arabic

アラビア語をうまく表現するスタイルにTextViewを設定する方法はありますか?おそらくandroid:textAppearanceを使用していますか?

+0

:あなたはViewオブジェクトを持ってどこ

someTypeFace = Typeface.createFromAsset(getAssets(), "fonts/someFont.ttf"); 

、3- http://stackoverflow.com/questions/7962704/how-to-support-arabic-text-in-android/7962813#7962813 – Rasman

+0

私はこれらのリンクがあなたに役立つと思います.... [link 1] [1] [リンク2] [2] [1]:http://stackoverflow.com/questions/5337680/using-androidtextappearance-on-textview-edittext-fails-but-style-作品 [2]:http://stackoverflow.com/questions/8245259/android-button-textappearance おかげで.... – user4232

答えて

1

書体を作成し、テキストを表示するすべてのコンポーネント(TextView、EditText、Button、...)に設定します。これを行うには:

1-あなたの資産フォルダあなたの活動に

2 - にあなたのフォントファイルをコピーします。

someTextView = (TextView) findViewById(R.id.some_text_view); 
someTextView.setTypeface(someTypeFace);