1

I am working on a project which is in Xamarin Cross Platform in Android. I am not to able to get Input of Commas from numeric keyboard. here is the code:

<Entry Text="{Binding Path=CalculationItem.HourlyRate}" Keyboard="Keyboard.Numeric" Grid.Column="1" Grid.Row="0"/>

But In Android Studio I acheived by doing this:

<EditText
        android:id="@+id/germenCurrency"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:digits="0123456789,"
        android:inputType="numberDecimal"/>

In xamarin i am not able to get input of Commas

Thanks in Advance.

Regards, Vivek Patel

Vivek Patel
  • 399
  • 4
  • 18
  • What is the comma supposed to be? The decimal-separator? Have you tried "."? – Fildor Oct 18 '16 at 07:51
  • yes this is "." working .But i also want input of this "," – Vivek Patel Oct 18 '16 at 08:03
  • Not too familiar with UI design on Android but I guess you must set the Locale or something in that direction. "germenCurrency" -> I guess you want German Number format which has "," as decimal separator. – Fildor Oct 18 '16 at 08:08
  • Is the keyboard set to German? – Fildor Oct 18 '16 at 08:10
  • This seems rather old but maybe still relevant? http://stackoverflow.com/questions/3821539/decimal-separator-comma-with-numberdecimal-inputtype-in-edittext – Fildor Oct 18 '16 at 08:45
  • @Fildor may i know how to set keyboard for GermanCurrency – Vivek Patel Oct 18 '16 at 08:53
  • As I said: I am not familiar with GUI design in Xamarin/Android. Neither setting the Keyboard. That was just a shot into the blue. The keyboard layout should adapt to the inputType setting, but I don't know how to change the Locale. In the Link - see above - it sais there may be a Android bug. But it is from 2010 so I don't know if this is still relevant. – Fildor Oct 18 '16 at 09:57
  • thank you so much for your response – Vivek Patel Oct 18 '16 at 13:05

0 Answers0