Java android.text.method DigitsKeyListener fields, constructors, methods, implement or subclass

Example usage for Java android.text.method DigitsKeyListener fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.text.method DigitsKeyListener.

The text is from its open source code.

Constructor

DigitsKeyListener()
Allocates a DigitsKeyListener that accepts the ASCII digits 0 through 9.
DigitsKeyListener(boolean sign, boolean decimal)
Allocates a DigitsKeyListener that accepts the ASCII digits 0 through 9, plus the ASCII plus or minus sign (only at the beginning) and/or the ASCII period ('.') as the decimal point (only one per field) if specified.

Method

DigitsKeyListenergetInstance(@Nullable Locale locale)
Returns a DigitsKeyListener that accepts the locale-appropriate digits.
DigitsKeyListenergetInstance(@NonNull String accepted)
Returns a DigitsKeyListener that accepts only the characters that appear in the specified String.