简体   繁体   中英

Android : show a english number string into hindi or any language number string

I have an edit text. I have to take the string from the edit text and the edit text will provide some numbers into English formate. and then I have to show the number in Hindi or any kind of language format in a text view

If I got you right, you are actually want to translate / convert numbers in your editText to another language.

First approach, I would suggest you to implement Google Translate API. Since you mentioned an editText, assuming only 1, and maybe for some Q and A?!

The second approach, you mentioned about formatting, the number index came into my mind. You could use Locale Directories and Resource Files

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM