本文介绍了在Android的覆盖无障碍功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经开发了一个应用程序为视障人士。我创建了简单的手势触摸一样,双水龙头我的应用程序和使用的读数文本TTS。我有一个奇怪的问题:

I have developed an app for visually impaired. I created easy gestures like touch, double taps for my app and using tts for readings texts. I have a strange problem:

当我喜欢启用对讲功能辅助。我的应用程序的手势被停用,我不能用我的任何应用程序内的手势。

When I enable accessibility function like talkback. My apps gesture get disabled, I can't use any of my in-app gestures.

我该如何解决这个问题?

How do I fix this?

谢谢!

推荐答案

的Andr​​oid版本,你定位?

Which version of Android are you targeting?

您可能想看看为Android 4.1 +

You may want to look at http://support.google.com/nexus/bin/answer.py?hl=en&answer=2692469 for the Android 4.1+.

基本上,对讲将取代许多手势,但在Android的某些版本中,你可以通过访问

Basically, Talkback will replace many of the gestures, but on some versions of Android you can adjust these by going to

Settings > Accessibility > TalkBack > Settings > Manage shortcut gestures.

因此​​,这将是有意义的只接受已经被支持的价值观,而不是试图绕过它。

So it would make sense to just accept the values that are already supported, and not try to get around it.

此外,如果用户使用浏览触摸你没有提到(的)

Also, you didn't mention if the users are using Explore Touch (http://support.google.com/nexus/bin/answer.py?hl=en&answer=2692788)

如果你想捕捉这些,看来您可以使用 onHoverEvent 根据这样的问题:

If you want to catch these, it appears that you can use onHoverEvent according to this question:

How我可以保持一个姿势指针探索,通过触摸时启用?

更新:

您可以看看关于如何判断对讲激活了这个问题:

You can look at this question on how to tell if Talkback is active:

How检查对讲活跃在软糖

如果是,告诉他们需要把它关掉你的程序工作,也许是用户。

If it is on, tell the user they need to turn it off for your program to work, perhaps.

这篇关于在Android的覆盖无障碍功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-11 23:43