I just created a text page in my application, and now I want to dynamically change the language of this page to Indian languages ββsuch as Telugu, Tamil, Bangla, Gujrati and Punjabi.
I researched a lot and realized that there are only 2 methods for this (please correct me if I am wrong): -
1) Using string localization http://developer.android.com/guide/topics/resources/localization.html . But the problem is that if the Android phone supports these languages, then it works, otherwise it displays the fields in place of the fonts.
2) Using custom fonts to change the language, for example
TextView tv=(TextView)findViewById(R.id.custom); Typeface face=Typeface.createFromAsset(getAssets(),"fonts/Verdana.ttf"); tv.setTypeface(face);
But here the problem is rendering. Fonts do not display properly.
Please suggest me which option to choose and how to overcome it.
I also want to mention that I want to support it on Android 2.3 and higher.
source share