Most visited

Recently visited

Added in API level 1

DateTimeKeyListener

public class DateTimeKeyListener
extends NumberKeyListener

java.lang.Object
    android.text.method.MetaKeyKeyListener
      android.text.method.BaseKeyListener
        android.text.method.NumberKeyListener
          android.text.method.DateTimeKeyListener


用于在同一文本字段中输入日期和时间。

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

DateTimeKeyListener()

公共方法(Public methods)

int getInputType()
static DateTimeKeyListener getInstance()

Protected methods

char[] getAcceptedChars()

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

继承方法(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

DateTimeKeyListener

Added in API level 1
DateTimeKeyListener ()

公共方法(Public methods)

getInputType

Added in API level 3
int getInputType ()

返回(Returns)
int

getInstance

Added in API level 1
DateTimeKeyListener getInstance ()

返回(Returns)
DateTimeKeyListener

Protected methods

getAcceptedChars

Added in API level 1
char[] getAcceptedChars ()

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

返回(Returns)
char[]

Hooray!