1
myXmlContent.setText("بِسْمِ اللَّهِ الرَّحْمَٰنِ الرَّحِيمِ");

I am writing the above code and trying to display the text in Arabic.

but every character is being displayed separately in Android emulator.

Please help.

shoayb
  • 223
  • 2
  • 5
  • 11

3 Answers3

2

Complex scripts are currently not fully support by the UI toolkit. We are working on improving this.

Romain Guy
  • 97,993
  • 18
  • 219
  • 200
0

Have look the below link.

Android Arabic Language

You need to use Arabic Reshaper utility

Below are the some links https://github.com/agawish/Better-Arabic-Reshaper

https://mdictionary.wordpress.com/2011/02/10/connected-arabic-characters-for-android-apps/

Community
  • 1
  • 1
0

Don't Worry we faced this on our applications but it works like a charm on the real devices (Samsung htc) I do advice work and debug directly on real device this is faster and reflects your work In final look. you may look at: https://stackoverflow.com/a/3769283/771300

Community
  • 1
  • 1
Ahmed Aswani
  • 8,271
  • 7
  • 33
  • 54