Most visited

Recently visited

Added in API level 1

DateKeyListener

public class DateKeyListener
extends NumberKeyListener

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


For entering dates in a text field.

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

The characters that are used.

Public constructors

DateKeyListener()

Public methods

int getInputType()
static DateKeyListener getInstance()

Protected methods

char[] getAcceptedChars()

You can say which characters you can accept.

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

The characters that are used.

See also:

Public constructors

DateKeyListener

Added in API level 1
DateKeyListener ()

Public methods

getInputType

Added in API level 3
int getInputType ()

Returns
int

getInstance

Added in API level 1
DateKeyListener getInstance ()

Returns
DateKeyListener

Protected methods

getAcceptedChars

Added in API level 1
char[] getAcceptedChars ()

You can say which characters you can accept.

Returns
char[]

Hooray!