Can you make an EditText input from right to left?

后端 未结 10 1205
天命终不由人
天命终不由人 2020-12-20 11:52

I was wondering if you can control input on an EditText to move from right to left? The EditText would have to support insert/delete etc. from right to left as well. Is th

10条回答
  •  死守一世寂寞
    2020-12-20 12:36

    you can add to your edittext in xml:

    in case of left to right :

       android:textDirection="firstStrongLtr"                    
    

    in case of right to left :

       android:textDirection="firstStrongRtl"                    
    

提交回复
热议问题