I am learning C# and Xamarin.Forms at the moment, so please treat me like a complete beginner.
I have an entry in my XML in Xamarin.Forms:
<Entry x:Name="temperature" Placeholder="Temperatur" Keyboard="Numeric" Margin="20,0"/>
In my CS:
double temp = double.Parse(temperature.Text);
This all works fine. But I need to use a different kind of entry for Android. Because Xamarin.Forms Entry do not handle decimal separators very well when it comes to Samsung phones.
On Android I want to use NuGet "NumericEditText-Xamarin.Android" like this:
<br.com.akamud.NumericEditText
android:id="@+id/txtNumeric"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="number|numberDecimal" />
It should handle my entry input, and then of course handle the entry after that with the shared code of Xamarin.Forms. Is dependency service the best way to go about solving this?
Would someone be so kind to help me out in the right direction.