Most visited

Recently visited

Added in API level 1

DialerKeyListener

public class DialerKeyListener
extends NumberKeyListener

java.lang.Object
   ↳ android.text.method.MetaKeyKeyListener
     ↳ android.text.method.BaseKeyListener
       ↳ android.text.method.NumberKeyListener
         ↳ android.text.method.DialerKeyListener


用于拨号文本输入

As for all implementations of KeyListener, this class is only concerned with hardware keyboards. Software input methods have no obligation to trigger the methods in this class.

Summary

Inherited constants

From class android.text.method.MetaKeyKeyListener

Fields

public static final char[] CHARACTERS

使用的字符。

Public constructors

DialerKeyListener()

Public methods

int getInputType()
static DialerKeyListener getInstance()

Protected methods

char[] getAcceptedChars()

你可以说你可以接受哪些角色。

int lookup(KeyEvent event, Spannable content)

重写超类的查找方法以优先考虑KeyEvent中的数字字段。

Inherited methods

From class android.text.method.NumberKeyListener
From class android.text.method.BaseKeyListener
From class android.text.method.MetaKeyKeyListener
From class java.lang.Object
From interface android.text.InputFilter
From interface android.text.method.KeyListener

Fields

CHARACTERS

Added in API level 1
char[] CHARACTERS

使用的字符。

也可以看看:

Public constructors

DialerKeyListener

Added in API level 1
DialerKeyListener ()

Public methods

getInputType

Added in API level 3
int getInputType ()

Returns
int

getInstance

Added in API level 1
DialerKeyListener getInstance ()

Returns
DialerKeyListener

Protected methods

getAcceptedChars

Added in API level 1
char[] getAcceptedChars ()

你可以说你可以接受哪些角色。

Returns
char[]

lookup

Added in API level 1
int lookup (KeyEvent event, 
                Spannable content)

重写超类的查找方法以优先考虑KeyEvent中的数字字段。

Parameters
event KeyEvent
content Spannable
Returns
int

Hooray!