Languge support for Gujrati and Hindi in android

前端 未结 3 1388
慢半拍i
慢半拍i 2021-02-04 19:24

Hi any body know how we can support Hindi and Gujrati Languge support in android. I used below code but it is not supported, I see only box.

I put string file in r

相关标签:
3条回答
  • 2021-02-04 19:58

    Hindi and many other Indian langy=uages are not supported in Android. Though HTC is planning to provide support for some Indian languages.Read Here.

    Now, the code you used to put Hindi text in your app will only work if the Android phone has built in support for Hindi language.

    You need to embed Hindi fonts in your app as Kri said.

    0 讨论(0)
  • 2021-02-04 20:08

    As gujarati and hindi languages are not supported by Android, you can still give that support to your Application.

    For Gujarati copy the C:\WINDOWS\Fonts\Shruti.TTF file to your Assets folder click here to know how to make assets folder then use the following code.

    TextView text_view = new TextView(this);
    
    Typeface font = Typeface.createFromAsset(getAssets(), "Shruti.TTF");
    
    text_view.setTypeface(font);
    
    text_view.setText("ગુજરાતી");
    

    Shruti.TTF file is for Gujarati font. Similarly you can add support for hindi file.

    0 讨论(0)
  • 2021-02-04 20:08

    Hindi reading method in opera mini 1 - First install latest version of "Opera Mini" on Android powered tablet or phone which is available free on Android Market. Otherwise go to official site of opera. (Read about Opera Mini & download) 2 - After that go to address bar & type opera:config and nothing should have www or http://. 3. Then come to the menu & at its end see "use bitmap fonts for complex scripts". No sentence will be written in front of. You change it to Yes. 4. Save it. Now Open any Hindi site and see hindi font on your mobile / tablet instead of square font.

    Your can try the following also… Install Hindi font (including all Indian language) as system font - go this link:- http://android-bucket.blogspot.com/2011/07/hindi-font-installation-for-advance.html (Only for Advance users)

    0 讨论(0)
提交回复
热议问题