I have an edit text field, which I need to format every word to hashtag
Example if I type
ABC
it should be formatted to#ABC
I’ve implemented it with input filter but I’m not able to manage it when user enter Arabic text, #abc# مرحبا #مرحبا
appears like this, I assume I can solve the problem if I can force the EditText android:textDirection="ltr"
, but even after this change android EditText behaving rtl
when input is Arabic text.
So my question is, how to force an EditText to behave ltr
even for rtl
text inputs like Arabic?