1

I am using the findAll method for the first occurrence, then findNext(true) for the following markers. The view will automatically scroll to the requested text. But it scrolls to the requested text at the bottom of the device. I want to scroll until the requested text is at top of the screen. Any solution for this?

Do you have any ideas how I could implement this? I'd really appreciate your help.

4

1 回答 1

2

那么首先你尝试使用webView.findNext (true),然后使用webView.findAll(TEXT);然后webView.scrollTo (0, webView.getScrollY () +5000);(5000 是向下滚动)然后再次使用webView.findAll(TEXT);.

祝你好运!

于 2012-12-22T17:11:29.383 回答