NumberKeyListener

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.

Constructors

public NumberKeyListener() empty body source

Methods

protected abstract char[] getAcceptedChars() source
protected int lookup(KeyEvent event, android.text.Spannable content) source
protected static boolean ok(char[] accept, char c) source
public CharSequence filter(CharSequence source, int start, int end, Spanned dest, int dstart, int dend) source
public boolean onKeyDown(View view, Editable content, int keyCode, KeyEvent event) source

Made 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.