-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,213
  • 4
  • 37
  • 53
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
  • 439
  • 1
  • 9
  • 18