-4

I am a beginner in android app developer.How can i create a complete malayalam app.I want to make each interface like button,text view..etc in malayalam.Please help me by give some suggestions

Asif Lijaz
  • 35
  • 4

1 Answers1

2

You can simply use this.

         TextView tv = (TextView) findViewById(R.id.tv);
         Typeface Malayalam = Typeface.createFromAsset(getAssets(), "AnjaliOldLipi.ttf");
         tv.setTypeface(Malayalam);
         tv.setText("റമീസ് ");

Download the ttf file from HERE and put it in the assets folder of your Android project.

Remees M Syde
  • 2,564
  • 1
  • 19
  • 42
  • It shows an error while saving..., Error:Some characters cannot mappped using "Cp 1252"character encoding. – Asif Lijaz Jul 31 '14 at 08:54
  • Try the edited answer now, Plz make sure "AnjaliOldLipi.ttf" file is in your asset folder. – Remees M Syde Jul 31 '14 at 08:58
  • yah sure.. im using the same..., but it can't able to save, it shows like malayalam word can't mappped. – Asif Lijaz Jul 31 '14 at 09:05
  • In Eclipse go to Window -> Preferences, select General -> Workspace. From the Text file encoding dropdown, select UTF-8. – Remees M Syde Jul 31 '14 at 09:18
  • no brother.. yet i did't get wot i want, actually.. i have a word document, Which include both Malayalam & Arabic letters in ASCII character set, i want to see this data in my app when pressing a button 'Read More' – Asif Lijaz Aug 03 '14 at 06:39
  • I not that much aware of it, But i think "NO", Plz refer this. http://stackoverflow.com/questions/2973270/using-a-custom-typeface-in-android – Remees M Syde Nov 14 '14 at 09:55