Building Bangla Supported Android Application in Android Studio is possible by using custom typeface. Just Do the following steps that i described Step1 : Go To Android Project main and make a new Directory named "assets" Step2: Now Again make another new directory among assets file named "fonts" Step3: Now Download Kalpurush font from here as .ttf file format. Step4: Copy And Paste this Bangla font to your fonts directory in android studio. Step5: Write some code at your ActivityMain.Java Button btn; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); btn= (Button) findViewById(R.id.button); Typeface myCoustomFont=Typeface.createFromAsset(getAssets(),"fonts/kalpurush.ttf"); btn.setTypeface(myCoustomFont); Step6: ActivityMain.xml will looks like
Comments
Post a Comment