I’m struggling to get the correct keyboard to show and be able to insert numbers and the decimal symbol but I’m faced with a strange situation.
This is what i got with Android Studio using Java code:
Here the xml code to show this keypad:
<EditText
android:id="@+id/editTextNumberDecimal"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ems="10"
android:inputType="numberDecimal"
tools:layout_editor_absoluteX="0dp"
tools:layout_editor_absoluteY="1dp" />
So in this case everything works fine, i can digit numbers and dot to separate decimals.
Using Visual Studio with Net Xamarin and Syncfusion the keypad change like this:
The Keypad Show the negative sign and the dot.
I can insert in the negative sign doing double tap as the first char but not the dot.
The dot is never get showed on the textbox.
here is the xml code to call the numeric keypad:
<control:BorderlessEntry
x:Name="StretchRatioLenEntry"
Placeholder="(Es. 3,3)"
Keyboard= "Numeric"
Style="{StaticResource BorderlessEntryStyle}"
Text="{Binding StretchRatioLen.Value}" PlaceholderColor="#7B7B7B">
<Entry.Behaviors>
<behaviour:NumberEntryBehavior IsValid="{Binding StretchRatioLen.IsValid}" />
</Entry.Behaviors>
</control:BorderlessEntry>
So do you have any suggestion?
Thanks for your help.
here a picture from the emulator:
as you can see, this is what i want but on the real device the keypad change.
2
Answers
So, finally i've found a solution.
Thanks alot to Guangyu Bai - MSFT to put me in the right way!
The mentioned keyboard is a native Android keyboard, which is independent of Xamarin or Syncfusion. Since it relies on the device’s operating system, the keyboard layout can vary. Therefore, changing the keyboard layout is not possible, as it is determined by the native Android system.