Android language support for Indian regional languages ​​(Kannada, Tamil, etc.)

I can switch to Hindi language from my application, i.e. get the appropriate resources for hindi from hi-values ​​... But when I follow a language like Kannada (values-kn), the locale switches, but it displays blank for every text in Kannada. How can I add support for Indian regional languages ​​like Kannada, Tamil, etc. I want it to be the same as for Hindi, i.e. Selected resources from the corresponding xx values. I searched through Google, and most of them suggest having a font file (.ttf) in assets and for each TextView, Button, etc. install it with setTypeFace ... but it will be more complicated. I have locale-specific text that is used wherever there is an action name, progress dialogs, etc. And even most widgets are dynamically created.

My minimum target version is Android SDK 4.0 ... So I really don't care if it works or not for Android version <4. I have tested it so far on the emulator. I don’t know if this will be the same for real devices either.

Edit: I tested the application on Nexus 7 running Android 4.4.2, and it shows text in Kannada, Tamil, Telugu ... most Indian languages. Need to test other devices or lower version (v4.0-4.3)

+6
source share

All Articles