![](/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.