本文整理了Java中android.webkit.WebView.clearMatches()
方法的一些代码示例,展示了WebView.clearMatches()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebView.clearMatches()
方法的具体详情如下:
包路径:android.webkit.WebView
类名称:WebView
方法名:clearMatches
暂无
代码示例来源:origin: smuyyh/BookReader
@Override
public boolean onClose() {
mWebView.clearMatches();
return false;
}
});
代码示例来源:origin: LineageOS/android_packages_apps_Jelly
private void clearSearchResults() {
mCurrentResultPosition = -1;
mTotalResultCount = -1;
mWebView.clearMatches();
mHasStartedSearch = false;
}
代码示例来源:origin: bkhezry/ExtraWebView
private void reset() {
mEditText.setText(null);
mButtonNext.setEnabled(false);
toggleSoftKeyboard(false);
mWebView.clearMatches();
}
代码示例来源:origin: LineageOS/android_packages_apps_Jelly
public void onCancel() {
mStatus.setText(null);
mWebView.clearMatches();
mListener.onCancelSearch();
}
代码示例来源:origin: calvinaquino/LNReader-Android
public void closeSearchBox(WebView webView) {
RelativeLayout searchBox = (RelativeLayout) parent.findViewById(R.id.searchBox);
searchBox.setVisibility(View.GONE);
webView.clearMatches();
}
代码示例来源:origin: apps4av/avare
@Override
public void onTextChanged(CharSequence s, int start, int before, int after) {
/*
* If text is 0 length or too long, then do not search, show last list
*/
if(s.length() < 3) {
mWebView.clearMatches();
return;
}
mProgressBar.setVisibility(ProgressBar.VISIBLE);
mWebView.findAll(s.toString());
mProgressBar.setVisibility(ProgressBar.INVISIBLE);
}
});
内容来源于网络,如有侵权,请联系作者删除!