0

I want to get only decimal keyboard like this :

enter image description here

But I get this :

enter image description here

and this is what I do

<EditText
            android:imeOptions="actionDone"
            android:inputType="phone"
            android:digits="0123456789,."
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_below="@+id/funding_amount"
            android:layout_marginTop="8dp"
            android:background="@drawable/bt_state_blue_light"
            android:hint="@string/pln_amount_placeholder"
            android:minHeight="40sp"
            android:padding="5dp"
            android:textColor="@color/background_tutorial"
            android:textColorHint="@color/text_color_tutorial"
            android:textSize="@dimen/text_dp_16" />

if I change I get this :

android:digits="0123456789" android:inputType="numberDecimal"

enter image description here

kiki Kala2
  • 399
  • 5
  • 19

1 Answers1

0

You need to create a custom keyboard of android that can input number decimals. Check this link to make your own custom keyboard How can you make a custom keyboard in Android? or Using Library like here

Aldan
  • 674
  • 9
  • 23