EditText and InputFilter cause repeating text

前端 未结 5 1939
野性不改
野性不改 2021-02-19 05:43

I\'m trying to implement an EditText that limits input to alpha chars only [A-Za-z].

I started with the InputFilter method from this post. When I type \"a%\" the text d

5条回答
  •  不知归路
    2021-02-19 06:03

    I would just like to add my solution to the problem(as late as it is). I found that if you add

        yourEditText.setInputType(InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS);
    

    Then the backspace problems stop

提交回复
热议问题