0

i am going to set mix text on edittext like:Xyz Pvt Ltd فاتورة المبيعات مبيعات التسليم <0x09> Choclate Cake 10 x30.000 = 300.000

Acualy i had set text like this but arbic text chage it Xyz Pvt Ltd ف اتورة المبيعات مبيعات التسليم -Choclate Cake 10 x30.000 = 300.000

As you can see in first line after arbick text i had append <0X09> but it will append before arbick text that's proble

PankajAndroid
  • 2,689
  • 3
  • 27
  • 41

1 Answers1

0

You can try to convert the unicode to arabic type with a convertor online and then setText the view with arabic font. For tamil I had used TAB font so I downloaded the tab font and had put it in my assets folder and then in setTypeFace I used the font. You can try the arabic encoded string and the font.

String EncodedString = "Üî¢î¤ò£òñ¢ : "; // Your arab encoded string
Typeface tfTab = Typeface.createFromAsset(getAssets(),"fonts/tabkovai.ttf"); // Replace with arab font
tab.setTypeface(tfTab);
TextView.setText(EncodedString);
xtreak
  • 1,376
  • 18
  • 42