I want to get only decimal keyboard like this:
But I get this:
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"
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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.