在我的应用程序中,Talkback没有发音按钮的名称。相反,它只是发音为“按钮”。
有人能帮我完成这个任务吗?
我尝试了以下xml
<Button
android:id="@+id/loginsuccess"
android:scaleType="fitXY"
android:layout_width="100dp"
android:layout_height="30dp"
android:background="@drawable/submit_button"
android:layout_alignParentRight="true"
/>那不管用
发布于 2017-10-03 12:52:53
我只是在xml文件中添加了一个属性android:contentDescription=“”,如下所示
<Button
android:text="Login"
android:textSize="0sp"
android:id="@+id/loginsuccess"
android:scaleType="fitXY"
android:layout_width="100dp"
android:layout_height="30dp"
android:background="@drawable/submit_button"
android:contentDescription="login"
android:layout_alignParentRight="true"
/>解决了问题。
发布于 2017-10-03 12:49:01
应该在按钮xml声明中添加以下内容:
android:contentDescription="buttonName"发布于 2018-04-27 14:27:42
作为参考,这是因为你没有android:text,所以没有什么可读出的。
https://stackoverflow.com/questions/46472011
复制相似问题