SkillAgentSearch skills...

CardTextWatcher

CardTextWatcher 继承了 TextView的TextWatcher,具有TextWatcher的所有功能,同时针对现行银行,封装了银行卡格式

Install / Use

/learn @honjane/CardTextWatcher
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

CardTextWatcher

CardTextWatcher 继承了 TextView的TextWatcher,具有TextWatcher的所有功能,同时针对现行银行,封装了银行卡格式 使用说明: 和TextWatcher用法一样,在

txt.addTextChangedListener(new CardTextWatcher() { @Override public void onBeforeTextChanged(CharSequence s, int start, int count, int after) {

        }

        @Override
        public void onOtherTextChanged(CharSequence s, int start, int before, int count) {

        }

        @Override
        public void onAfterTextChanged(Editable s) {
            if (s.length() > 0) {
                txt.setEnabled(true);
            }
        }
    });

image image

View on GitHub
GitHub Stars6
CategoryDevelopment
Updated7y ago
Forks1

Languages

Java

Security Score

55/100

Audited on May 7, 2018

No findings