0
Putting such a configuration in an Edittext, when compiling the keyboard is "dropped" on the screen
follows the xml of Edittext
<EditText
android:id="@+id/edtIP"
android:layout_width="652dp"
android:layout_height="wrap_content"
android:ems="10"
android:gravity="center"
android:singleLine="false"
android:inputType="number"
android:textSize="20dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="parent" />
being as follows:
I would like it to stay numeric but with the normal keyboard behavior!
– iDecks
@iDecks this behavior you do not control. It varies from devices. If there is any way to control this, it would be using context, but I believe there isn’t. What you can do is mount your own keyboard...
– Andrei Coelho
I will leave the original keyboard and assign a mask to let the user type only numbers, thank you!
– iDecks
@iDecks is an interesting option.
– Andrei Coelho