![](/img/trans.png)
[英]Talk Back annoucing spinner content description even when editText has focus
[英]Android talk back announcing incorrect content description for TextInputLayout when the the input type of EditText is password
我的 android 应用程序中有一个具有以下结构的 TextInputLayout。
<com.google.android.material.textfield.TextInputLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent">
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:imeOptions="actionDone"
android:id="@+id/mEdit"
android:inputType="numberPassword"
android:maxLength="4"
android:singleLine="true"
app:layout_constraintTop_toTopOf="parent" />
</com.google.android.material.textfield.TextInputLayout>
这里EditText
的maxLength
是4 。 但是,在启用对讲后,如果我们尝试在密码字段中编辑某些内容,对讲会宣布内容描述,例如Bullet,即使我们没有达到EditText
的maxLength
也达到了最大长度。
提前感谢您的宝贵意见。
使用com.google.android.material.textfield.TextInputEditText
而不是在TextInputLayout
中使用EditText
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.