可访问性--我用TalkBack做了一些测试,以读取输入文本,从而使我的应用程序更容易访问。我发现这可能是Edittext的易访问性缺陷。
当我使用定义了"numberPassword“和"maxLength”的组件Edittext时。该TalkBack,读为“达到最大限度”,但在实际的最大限度没有击中。
此bug可在以下几个方面复制:
可复制: Google像素3(OS v11),三星的10 e(OS v10)
工作良好:三星s8(OS v8),三星10 (OS v10)
有谁能帮忙解决这个问题吗?
发布于 2022-07-13 02:01:59
最近,我遇到了同样的问题,在找到发行人在评论和搜索的资源。我找到解决办法了。
首先,我们必须导入com.google.material组件,最好使用最新版本,如果不能,请确保它高于1.4
implementation 'com.google.android.material:material:1.6.0'其次,我们必须选择使用TextInputEditText;
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/textField"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/label">
<com.google.android.material.textfield.TextInputEditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:maxLength="3"
/>
</com.google.android.material.textfield.TextInputLayout>https://stackoverflow.com/questions/64572439
复制相似问题