Class of android.text.method · NumberKeyListener.java · Android's reference
public abstract class NumberKeyListener extends BaseKeyListener implements InputFilter
NumberKeyListener ← BaseKeyListener ← MetaKeyKeyListener
A key listener and an input filter that accept only the chars of getAcceptedChars.
public NumberKeyListener() empty body sourceprotected abstract char[] getAcceptedChars() sourceprotected int lookup(KeyEvent event, android.text.Spannable content) sourceprotected static boolean ok(char[] accept, char c) sourcepublic CharSequence filter(CharSequence source, int start, int end, Spanned dest, int dstart, int dend) sourcepublic boolean onKeyDown(View view, Editable content, int keyCode, KeyEvent event) sourceMade from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.