arabic digits are shown instead of English

531 Views Asked by At

I've a text view. in onCreate I set its text to be:

textView.setText(DateUtils.formatElapsedTime(162)) // 162 seconds

Because the app is in arabic, its date is written as: "٠٢:٤٢" while I would like to set it in ENGLISH. How to show this number in english without letting Android change it to arabic? I'm trying to use Locale.US somehow.

0

There are 0 best solutions below