我有一个编辑框,它的最大长度设置为6位数。它清楚地工作,但在键盘上我可以继续打字。如何设置最大长度android键盘
的EditText:111111
键盘:11111111111111111 ....
,并在尝试删除,它删除从右到左的数量,当键盘来6位,我可以删除的EditText。
你有什么经验吗?
我不能上传工作图像,
------------------
-111111 - - edittext max length 6
------------------
-------------------
- 1111111111... - -> recommendation textbox on native keyboard
-------------------
1 2 3 4 5 6 7 8 9 0
q w e ....
..
..
..
..
-------------------
android:id="@+id/editTextSMSPassword"
android:layout_width="match_parent"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
android:layout_marginTop="20dp"
android:ems="10"
style="@style/EditboxStandart"
android:maxLength="6"
android:hint="Cep Şifre" />
@dimen/editbox_standart_height
@dimen/editbox_standart_text_size
@drawable/selector_rounded_text
1
true
normal
2013-07-15
Talha
+0
你是什么意思的“在键盘上”? –
+0
你确定你在'EditText'上设置了'android:maxLength =“6”'? –
+0
你可以看看编辑的问题,我不能上传工作图像,所以我尝试绘制。 –