I have an EditText with restricted characters. I allow digits only as
A strange thing appears on a Galaxy S4. It didn't appear a HTC Desire HD, HTC Desire X and a ZTE Blade.
dddsss
å
.dddsss
u
dddsssdddsssu
t
and the content becomes dddsssdddsssudddsssut
It sometimes happens when I press the backspace as well, so it must be a button press issue.
I added android:inputType="textNoSuggestions"
but it didn't help.
<EditText
android:id="@+id/comment_et"
android:layout_width="0dp"
android:layout_height="45dp"
android:layout_marginRight="5dp"
android:layout_weight="1"
android:paddingLeft="5dp"
android:paddingRight="5dp"
android:background="@drawable/idea_edittext"
android:digits="abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ,0,1,2,3,4,5,6,7,8,9,*,!,@,#,$,%,^,(,),_,+,-,[,],{,},:,;,',|,\,.,/,ß,?,~,="
android:inputType="textCapSentences|textNoSuggestions"
android:textSize="16dp" />
Has anyone experienced this?
I have same problem and solved with changing EditText's inputtype to:
android:inputType="text|textNoSuggestions"
I don't know if it's a proper solution but it's ok for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With