【问题标题】:Search with ShowfindDialog in webview not highlighting在 webview 中使用 ShowfindDialog 搜索不突出显示
【发布时间】:2012-05-12 07:47:41
【问题描述】:

对于我使用的 Android 3.x:

webview.showFindDialog(string_to_find, true);

效果很好。

但是,对于 Android 4.x,它会找到出现次数,但不会突出显示它们...

任何解决方法?

谢谢!

【问题讨论】:

  • 事实上,它适用于android 4.0 但不适用于android 4.0.3 和4.0.4...
  • 重现了我的 Galaxy Nexus 运行股票 4.0.4 上的无突出显示行为。此外,搜索文本本身是相当难以辨认的蓝底黑字,可能是因为我在操作栏上使用了“深色”主题。
  • 您可能对 API 18 中的 this method is now deprecated 感兴趣。

标签: android search android-webview highlighting


【解决方案1】:

似乎是 ICS 中的一个已知错误。此处已报告:http://code.google.com/p/android/issues/detail?id=29987 我在其他地方看到了可能的解决方法(调用私有方法 setFindIsUp),但它对我没有用.. =/

【讨论】:

  • 我是报告错误的人 ^^ 尝试了 setFindIsUp 方法,但也没有为我工作......
猜你喜欢
  • 1970-01-01
  • 2012-11-07
  • 2014-02-13
  • 2015-05-04
  • 2021-09-06
  • 1970-01-01
  • 1970-01-01
  • 2013-11-12
相关资源
最近更新 更多