disable emoji disables max Lenght
P1NG2WIN opened this issue · 2 comments
P1NG2WIN commented
If XEditText has the maximum number of characters set via android: maxLenght
and the disableEmoji
is enabled, the maxLenght
stops working
Layout example:
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/nameLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="8dp"
android:layout_marginStart="24dp"
android:layout_marginEnd="24dp"
app:errorEnabled="true"
app:boxBackgroundMode="filled"
app:counterEnabled="true"
app:counterMaxLength="100">
<com.xw.repo.XEditText
android:id="@+id/nameView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
android:paddingTop="16dp"
android:background="@android:color/transparent"
android:hint="@string/regist_name"
android:inputType="textPersonName"
android:singleLine="true"
android:maxLength="100"
app:x_disableEmoji="true" />
</com.google.android.material.textfield.TextInputLayout>
JakeWoki commented
+1
woxingxiao commented
Fixed.