Samsung Galaxy Tablet does not allow entering floating point numbers to inputs with “number” type

后端 未结 5 969
天涯浪人
天涯浪人 2020-12-20 11:47

Our client wants us to display numeric keyboard for an input field so basically I created a field like:

5条回答
  •  天命终不由人
    2020-12-20 12:39

    I do this in C#/Xamarin and what works for me on the code side (I dynamically build up forms) is using the following:

       EditText edittext1 = new EditText(view.Context);
       edittext1.InputType = Android.Text.InputTypes.NumberFlagDecimal;
    

    Hope it helps someone

提交回复
热议问题