Android Edit Text - Cursor stays at the starting position

前端 未结 5 1109
野趣味
野趣味 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条回答
  •  梦毁少年i
    2021-01-19 03:32

    It may be a bit too late to answer this question. But even i faced the same problem by using custom Keyboard. The problem was solved for me too after adding the following line in the XML file for every edittext

    android:imeOptions="flagNoExtractUi"

    android:inputType="textNoSuggestions"

    Like this

    
    

    I have seen a lot of people searching for this so i have posted to the one relevant to my problem.

提交回复
热议问题