Java Code Examples for android.text.method.DigitsKeyListener#getInstance()
The following examples show how to use
android.text.method.DigitsKeyListener#getInstance() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: InputTools.java From ministocks with MIT License | 4 votes |
public static DigitsKeyListener getDecimalKeyListener() { char separator = DecimalFormatSymbols.getInstance().getDecimalSeparator(); return DigitsKeyListener.getInstance("0123456789" + separator); }
Example 2
Source File: InputTools.java From ministocks with MIT License | 4 votes |
public static DigitsKeyListener getSignedDecimalKeyListener() { char separator = DecimalFormatSymbols.getInstance().getDecimalSeparator(); return DigitsKeyListener.getInstance("0123456789-" + separator); }