-
Notifications
You must be signed in to change notification settings - Fork 1k
Description
Place below code inside custom dialog layout and try to enter any number it will not allow to enter any number from 0 - 9 range
<com.rengwuxian.materialedittext.MaterialEditText
android:id="@+id/edtContactPersonMobile"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:hint="@string/contact_person_mobile"
android:imeOptions="actionNext"
android:inputType="phone"
android:maxLength="13"
android:paddingLeft="10dp"
android:paddingRight="10dp"
android:textSize="16sp"
app:met_baseColor="@android:color/black"
app:met_floatingLabel="highlight"
app:met_floatingLabelText="@string/contact_person_mobile"
app:met_floatingLabelTextSize="10sp"
app:met_hideUnderline="false"
app:met_primaryColor="?colorAccent" />