Android Edit Text - Cursor stays at the starting position

前端 未结 5 1201
野趣味
野趣味 2021-01-19 03:03

I am using an Edit Text in my project.

The problem is that whenever I type anything into the text box, it shows up, but the cursor does not move from its starting po

5条回答
  •  北荒
    北荒 (楼主)
    2021-01-19 03:21

    In my case, it was caused by using:

    android:textAllCaps="true"

    in the EditText element of my xml layout.

    When I removed it, it worked as expected

提交回复
热议问题