I am developing an application in Android. I want to show Hindi text for EditText, Buttons, textview, webview and also I need to get data from json parsing and store in Sqlite.
i have checked many sollutions but the following issues arise
Normal words in hindi can be rendered properly like सरल
the problem arises in words like नित्य
also words like प्र
My questions are
1) which ttf file should i use
2) which min sdk should i target
3) will the sqlite database support unicode
4) how to display data in webview it gets all messed up
is there a simple solution than using
TextView t = (TextView ) findViewById(R.id.hindi);
Typeface face=Typeface.createFromAsset(getAssets(),
"fonts/hindi.ttf");
t.setTypeface(face);
t.setText("Hindi font");
everywhere for textview like setting up a common file to call in res folder like we call strings.xml
Aucun commentaire:
Enregistrer un commentaire