-1

I want to remove 7 characters from edittext on one click of romve text listener in android please give reliable solution.

2 Answers2

0

You can handle backspace click events and remove the number of characters as required. Refer link on how to handle backspace button events.

Community
  • 1
  • 1
Anitha Manikandan
  • 1,160
  • 7
  • 19
0

check out TextWatcher, it have methods you want like beforeTextChanged(CharSequence s, int start, int count, int after)

snachmsm
  • 17,866
  • 3
  • 32
  • 74