简体   繁体   English

如何更改双击以激活小部件中使用的 RemoteView 的对讲指令?

[英]How to change talkback instructions for double tap to activate for RemoteView used in widgets?

I am using a custom layout for RemoteView in widget.我在小部件中使用 RemoteView 的自定义布局。 In talkback, it is currently speaking "double tap to activate" on imageview.在对讲中,它目前正在 imageview 上说“双击激活”。 But i want to replace the text with "double tap to open app".但我想用“双击打开应用程序”替换文本。 How can i get the above behavior in widgets?我怎样才能在小部件中获得上述行为?

I don't think this is possible with the current APIs.我认为当前的 API 不可能做到这一点。 RemoteViews don't have methods to set AccessibilityNodeInfo . RemoteViews没有设置AccessibilityNodeInfo的方法。

Workaround would be to add this information to content description via RemoteViews#setContentDescription .解决方法是通过RemoteViews#setContentDescription将此信息添加到内容描述中。 Then the user would still receive the information as "Open app, double tap to activate"然后用户仍然会收到“打开应用,双击激活”的信息

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何为双击和长按更改 Android 对讲指令 - How to change Android talkback instructions for double tap and long press 如何防止在焦点android的每个项目后对讲宣布“双击激活”? - How to prevent talkback to announce "double tap to activate" after every item in focus android? 在每个句子后禁用 TalkBack 使用提示(“双击激活,双击并按住长按”) - Disabling TalkBack usage hints ("Double tap to activate, double tap and hold for long press") after each sentence 如何使用对讲辅助功能 android 在视图中禁用消息“双击”? - How do it disable message "double on tap" in view using talkback accessibility android? 双击不会在对讲模式下单击父视图 - Double tap doesn't click the parent view in talkback mode 如何在片段视图中激活“话语提示”? - How to activate Talkback inside of an fragment's views? 如何在将在 RemoteView 中使用的可绘制对象上设置颜色过滤器? - How do I set a color filter on a drawable which will be used in a RemoteView? 如何从RemoteView中的布局编辑/更改View或从View创建RemoteView? - How edit/change View from layout in RemoteView or create RemoteView from View? 如何在应用名称的情况下更改 Android Talkback - How to change Android Talkback in case of App name RemoteView不会更改图像 - RemoteView does not change image
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM