1

We need to allow user to enter the numbers from Right to Left in Android TextView, ex: if an user wants to enter the sum of 2 numbers, the user starts adding the ones' place digits first and enter the the ones place result digit first, then tens place etc. Android 4.0 supports RTL languages for Hebrew, Arabic. Is it possible to implement a Custom TextView to allow user to enter only numbers from Right to Left direction or is any other UI component is available directly?

j0k
  • 22,600
  • 28
  • 79
  • 90
venkat
  • 11
  • 1
  • 2

1 Answers1

5

It seems this little trick is working on all devices, add this unicode character at the beginning of your text inside your TextView or your EditText to let the users input from right to left: \u200F.

You can also have a look to this specific question that looks like yours.

Community
  • 1
  • 1
Yoann Hercouet
  • 17,894
  • 5
  • 58
  • 85