-4

I want to use some Arabic letters in card view as text in my android app, how to achieve this. Anyone please help me.

Ali
  • 3,373
  • 5
  • 42
  • 54
sacp
  • 11
  • 4

1 Answers1

0

Simply copy paste an Arabic string in your string.xml file. The access that string variable through resources. For example put this in your string.xml

<string name="message">هذا المجلد يات المحذوفة غير قابلة للإسترجاع.</string>

And put this in your code, now mystring variable should be Arabic.

String mystring = getResources().getString(R.string.message);

Read here and here more suggestions

Bqin1
  • 467
  • 1
  • 9
  • 19