I want to limit number of letter entry to 18 characters and also cannot use more than 3 number digits.
To limit the length I've already done my code but don't know what to do with 3 number digits.
<android.support.v7.widget.AppCompatEditText
android:id="@+id/name_et"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:maxLength="18"
android:layout_marginStart="5dp"
android:digits="qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890 @#$"
android:layout_toEndOf="@+id/name_tv"
android:imeOptions="actionDone"
android:textColor="@android:color/black" />