本文整理了Java中android.webkit.WebView.getTag()
方法的一些代码示例,展示了WebView.getTag()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebView.getTag()
方法的具体详情如下:
包路径:android.webkit.WebView
类名称:WebView
方法名:getTag
暂无
代码示例来源:origin: androidquery/androidquery
public void load(){
if(url.equals(wv.getTag(AQuery.TAG_URL))){
return;
代码示例来源:origin: stackoverflow.com
@Override
public void onPageFinished(WebView view, String url)
{
System.out.println("onPageFinished: " + url);
if ("about:blank".equals(url) && view.getTag() != null)
{
view.loadUrl(view.getTag().toString());
}
else
{
view.setTag(url);
}
}
代码示例来源:origin: stackoverflow.com
@Override
public void onPageFinished(WebView view, String url)
{
System.out.println("onPageFinished: " + url);
if ("about:blank".equals(url) && view.getTag() != null)
{
view.loadUrl(view.getTag().toString());
}
else
{
view.setTag(url);
}
}
代码示例来源:origin: stackoverflow.com
private static final class WebViewHolder {
WebView wv;
}
@Override
public void onSharedPreferenceChanged(SharedPreferences pref, String key) {
WebViewHolder holder = new WebViewHolder();
if (key.equals("webviewUrl")) {
if (wv == null) {
wv = new WebView(this);
holder.wv = (WebView) findViewById(R.id.rss_webview);
holder.wv.getSettings().setJavaScriptEnabled(true);
holder.wv.setWebViewClient(new MyWebViewClient());
wv.setTag(holder);
} else {
holder = (WebViewHolder) wv.getTag();
}
holder.wv.loadUrl("about:blank");
holder.wv.loadUrl(pref.getString(key, null));
}
}
代码示例来源:origin: andforce/iBeebo
public void setGif(String bitmapPath) {
webView.setVisibility(View.VISIBLE);
if (webView.getTag() != null)
return;
代码示例来源:origin: com.googlecode.android-query/android-query
public void load(){
if(url.equals(wv.getTag(AQuery.TAG_URL))){
return;
内容来源于网络,如有侵权,请联系作者删除!