there is editText field in my app, and get 8 digit Numbers for get birthDay. So now it work. but there is .- button in app.
<com.rengwuxian.materialedittext.MaterialEditText
android:id="@+id/edit_birth"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/edit_name"
android:layout_margin="18dp"
android:fontFamily="@font/notokr_regular"
android:hint="@string/text_birthday"
android:inputType="number"
android:textSize="14sp"
app:met_errorColor="@color/colorPrimary"
app:met_floatingLabel="normal"
app:met_floatingLabelPadding="13dp"
app:met_floatingLabelTextColor="@color/color_000000"
app:met_floatingLabelTextSize="14sp"
app:met_textColor="@color/color_555555"
app:met_underlineColor="@color/color_e0e0e0" />
so how can I make not show '.-' button? I want to show only number buttons. is this possible?
Try with:
android:inputType="number"
android:digits="0123456789"
The other symbols will still be displayed on the keyboard, but the user will not be allowed to enter them in the field.