Номер InputType в TextInputEditText, а также в EditText не работает - PullRequest
0 голосов
/ 24 октября 2018

используется код, но на клавиатуре все еще отображаются десятичные и арифметические операторы в Oreo и в Kitkat.Пытался установить адаптер, но он не работает.Мне нужны только положительные числа от 0 до 9 с кнопками отмены и ввода на клавиатуре.https://pastebin.com/TmAP0cTt

<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:card_view="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_marginBottom="5dp"
    android:layout_marginTop="0dp"
    android:foreground="?android:attr/selectableItemBackground"
    android:padding="5dp"
    card_view:cardCornerRadius="2dp"
    card_view:cardElevation="2dp"
    card_view:cardUseCompatPadding="true">

 <android.support.design.widget.TextInputLayout
                android:id="@+id/til_quan_input"
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:layout_gravity="center_vertical"
                android:layout_weight="1">

                <EditText
                    android:id="@+id/tinet_order_quan"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center_vertical"
                    android:hint="@string/hint_quantity"
                    android:inputType="number|phone"
                    android:digits="0123456789"
                    android:maxLength="5"
                    android:textColorHint="@color/colorAccent"
                    android:textSize="@dimen/_13sdp" />
            </android.support.design.widget.TextInputLayout>
</android.support.v7.widget.CardView>
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...