本文介绍了如何在Android设备中启用“话语提示”的情况下使按钮(或其他小部件)聚焦?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在我的应用程序中实现辅助功能。情况如下:

I'm implementing Accessibility in my application. Here's the scenario :

我在屏幕的顶部(活动)水平放置了4个按钮。单击按钮后,我将启动一个警报对话框,向用户显示内容。显示警报后,我仍然可以在屏幕顶部的那四个按钮上执行点击操作。当我在Android设备中打开TalkBack(Android无障碍服务)并单击该按钮时,会显示警报,但我无法移动焦点(在Android手机中打开话语提示功能时会出现一个黄色的矩形框)到这4个按钮。

I have 4 buttons arranged horizontally at the very top of the screen (Activity). On the click of a button, I'm launching an Alert Dialog which displays something to the user. With the alert being displayed, I will still be able to perform click operations on those 4 buttons at the top of the screen. When I turn ON TalkBack (Android Accessibility Service) in Android device and click on that button, alert is getting displayed but I'm unable to move the focus (a yellow rectangular box which will be there when TalkBack feature is turned ON in Android phone) to those 4 buttons. Please help!

推荐答案

尝试通过Accessibility TalkBack将语音控制集成到应用程序中

Try to integrate voice control into your application via Accessibility TalkBack

将4个按钮定义为对象,并通过语音选择警报对话框:
按钮1
按钮2
...

Define 4 buttons, Alert Dialog Box as objects, selected by voice:button 1button 2...

...
我正在研究盲模式(无眼)的Android智能手机/设备的语音控制的局限性

...I am studying the limitations of voice control of Android smartphone/ device in Blind Mode ( eyes-free)

这篇关于如何在Android设备中启用“话语提示”的情况下使按钮(或其他小部件)聚焦?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-11 23:36