[英]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.