2X faster development
The ultimate Xamarin UI toolkit to boost your development speed.
When using virtual numeric keyboard in DataForm, decimal point is missing on Samsung S6 and S8 device’s numeric keyboard. This issue occurs due to Samsung devices S6 and S8 numeric KeyBoard.
Please find the following discussions about issue with numeric keyboard in Samsung devices:
https://github.com/bitpay/copay/issues/2838 https://github.com/bitpay/copay/issues/2384
This article explains the workaround “to show the decimal point” on virtual numeric keyboard in Samsung devices (S6, S8) by customizing the KeyListener settings in custom renderer in Xamarin.Forms Android platform.
Add custom editor in DataForm to customize native control renderer settings to show the decimal point in numeric keyboard.
Here, the Salary data field is used as custom editor.
By passing custom view in DataFormEditor, you can add custom editor to data form. Refer to this data form user guide documentation to creating a new custom editor.
Here, the SfNumericTextBox is loaded for custom numeric textbox editor.
The custom view (SfNumericTextBox) property settings, custom editor value commit, data validation can be handled by overriding the required methods in the DataFormEditor class. Refer to this KB article for more details.
Refer to the following code example for binding the DataObject and adding custom editor as SfNumericTextBox editor using the RegisterEditor method in data form.
In Android Renderer:
Return the DigitsKeyListener that accepts the digits 0 to 9 and dot (.) in native control KeyListener to show the decimal point in virtual numeric keyboard.
Example: NumericKeyBoardDecimalPoint |
2X faster development
The ultimate Xamarin UI toolkit to boost your development speed.
This page will automatically be redirected to the sign-in page in 10 seconds.