Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add localized listener for Android numeric input #719
Description of Change
Proposing this as an alternative fix to PR 396
The DigitsKeyListener in Android has
This preserves the default Android behavior (not allowing the user to enter an invalid number format) while allowing for "alternate" decimal separators (e.g.
This change also provides an easily overridable method for providing an alternate NumericKeyListener for users who need to disallow negative/decimal numbers or provide alternate acceptable characters.
A test page is included, but it's manual - there's currently no UI test facility for changing the language settings of the device mid-test.