TalkBack不会在iframe中宣布webview内容

时间:2014-10-09 23:38:26

标签: android cordova iframe android-webview accessibility

我有一个PhoneGap应用程序,可以通过PhoneGap的webview在iframe中显示内容。当TalkBack打开时,TalkBack不会在iframe中宣布任何内容。

我已经使用以下主页创建了一个测试应用程序:

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <meta name="format-detection" content="telephone=no" />
    <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" />
    <script type="text/javascript" src="phonegap.js"></script>
    <title>Test</title>
  </head>
  <body>
    <p>Test paragraph</p>
    <iframe src="content.html">
      You can't get there from here.
    </iframe>
  </body>
</html>

iframe内容为:

<!doctype HTML>
<html>
  <head>
    <title>Iframe Content</title>
  </head>
  <body>
    <p>Iframe content</p>
  </body>
</html>

当我点按Test paragraph时,Talkback会宣布它,但当我点击iframe内的任何地方时,Talkback会突出显示整个iframe并且不会宣布任何内容。

如果我在系统浏览器中尝试相同的主页和iframe内容,当我点击它时,TalkBack会在iframe中宣布Iframe content段。

为了让TalkBack在PhoneGap中的iframe中宣布内容,我需要做些什么吗?

0 个答案:

没有答案