-
Notifications
You must be signed in to change notification settings - Fork 1
Home
honjane edited this page Oct 16, 2014
·
1 revision
CartTextWatcher 继承了 TextView的TextWatcher,具有TextWatcher的所有功能,同时针对现行银行,封装了银行卡格式
使用说明: 和TextWatcher用法一样,在txt.addTextChangedListener(new CartTextWatcher(textView){ @Override public void onBeforeTextChanged(CharSequence s, int start, int count, int after) {
}
@Override
public void onAtherTextChanged(CharSequence s, int start, int before, int count) {
}
@Override
public void onAfterTextChanged(Editable s) {
if (s.length() > 0) {
txt.setEnabled(true);
}
}