How do I position the cursor on the right in EditText

前端 未结 5 716
我在风中等你
我在风中等你 2020-12-30 01:58

My application uses RTL language (right to left).

When the EditText field gets focus, the cursor appears on the left and only when the user starts to ty

5条回答
  •  温柔的废话
    2020-12-30 02:34

    IMHO, android:gravity = right only makes the text jusified to the right. But what you want cannot be done with this. You can call a ontouch event in the textbox and add the new character to the right of the current text and display it again.....

提交回复
热议问题