I can think of two ways of achieving it:
Use addTextChangedListener
:
yourEditText.addTextChangedListener(new TextWatcher() {
public void afterTextChanged(Editable s) {
// Do your tricks here
}
public void beforeTextChanged(CharSequence s, int start, int count, int after) {}
public void onTextChanged(CharSequence s, int start, int before, int count) {}
});
- Create custom Edittexts
This link wont do what you are looking for, but will give you an idea how to create custom EditText.