android.webkit.WebView.setId()方法的使用及代码示例

x33g5p2x  于2022-02-02 转载在 其他  
字(5.9k)|赞(0)|评价(0)|浏览(164)

本文整理了Java中android.webkit.WebView.setId()方法的一些代码示例,展示了WebView.setId()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebView.setId()方法的具体详情如下:
包路径:android.webkit.WebView
类名称:WebView
方法名:setId

WebView.setId介绍

暂无

代码示例

代码示例来源:origin: tianshaojie/AndroidFine

@Override
protected WebView createRefreshableView(Context context, AttributeSet attrs) {
  WebView webView;
  if (VERSION.SDK_INT >= VERSION_CODES.GINGERBREAD) {
    webView = new InternalWebViewSDK9(context, attrs);
  } else {
    webView = new WebView(context, attrs);
  }
  webView.setId(R.id.webview);
  return webView;
}

代码示例来源:origin: myxh/CoolShopping

@Override
protected WebView createRefreshableView(Context context, AttributeSet attrs) {
  WebView webView;
  if (VERSION.SDK_INT >= VERSION_CODES.GINGERBREAD) {
    webView = new InternalWebViewSDK9(context, attrs);
  } else {
    webView = new WebView(context, attrs);
  }
  webView.setId(R.id.webview);
  return webView;
}

代码示例来源:origin: kaku2015/WeatherAlarmClock

@Override
protected WebView createRefreshableView(Context context, AttributeSet attrs) {
  WebView webView;
  if (VERSION.SDK_INT >= VERSION_CODES.GINGERBREAD) {
    webView = new InternalWebViewSDK9(context, attrs);
  } else {
    webView = new WebView(context, attrs);
  }
  webView.setId(R.id.webview);
  return webView;
}

代码示例来源:origin: huangfangyi/FanXin

@Override
protected WebView createRefreshableView(Context context, AttributeSet attrs) {
  WebView webView;
  if (VERSION.SDK_INT >= VERSION_CODES.GINGERBREAD) {
    webView = new InternalWebViewSDK9(context, attrs);
  } else {
    webView = new WebView(context, attrs);
  }
  webView.setId(R.id.webview);
  return webView;
}

代码示例来源:origin: Uphie/ONE-Unofficial

@Override
protected WebView createRefreshableView(Context context, AttributeSet attrs) {
  WebView webView;
  if (VERSION.SDK_INT >= VERSION_CODES.GINGERBREAD) {
    webView = new InternalWebViewSDK9(context, attrs);
  } else {
    webView = new WebView(context, attrs);
  }
  webView.setId(R.id.webview);
  return webView;
}

代码示例来源:origin: alienjun/AJWaveRefreshForAndroid

@Override
protected WebView createRefreshableView(Context context, AttributeSet attrs) {
  WebView webView;
  if (VERSION.SDK_INT >= VERSION_CODES.GINGERBREAD) {
    webView = new InternalWebViewSDK9(context, attrs);
  } else {
    webView = new WebView(context, attrs);
  }
  webView.setId(R.id.webview);
  return webView;
}

代码示例来源:origin: Wan7451/Wan_RecycleViewAdapter

@Override
protected WebView createRefreshableView(Context context, AttributeSet attrs) {
  WebView webView;
  if (VERSION.SDK_INT >= VERSION_CODES.GINGERBREAD) {
    webView = new InternalWebViewSDK9(context, attrs);
  } else {
    webView = new WebView(context, attrs);
  }
  webView.setId(R.id.webview);
  return webView;
}

代码示例来源:origin: shanyao0/SimpleApp

@Override
protected WebView createRefreshableView(Context context, AttributeSet attrs) {
  WebView webView;
  if (VERSION.SDK_INT >= VERSION_CODES.GINGERBREAD) {
    webView = new InternalWebViewSDK9(context, attrs);
  } else {
    webView = new WebView(context, attrs);
  }
  webView.setId(R.id.webview);
  return webView;
}

代码示例来源:origin: gdpancheng/LoonAndroid3

@Override
protected WebView createRefreshableView(Context context, AttributeSet attrs) {
  WebView webView;
  if (VERSION.SDK_INT >= VERSION_CODES.GINGERBREAD) {
    webView = new InternalWebViewSDK9(context, attrs);
  } else {
    webView = new WebView(context, attrs);
  }
  webView.setId(LoonConstant.pullToRefresh.webview_id);
  return webView;
}

代码示例来源:origin: open-android/PullToRefresh

@Override
protected WebView createRefreshableView(Context context, AttributeSet attrs) {
  WebView webView;
  if (VERSION.SDK_INT >= VERSION_CODES.GINGERBREAD) {
    webView = new InternalWebViewSDK9(context, attrs);
  } else {
    webView = new WebView(context, attrs);
  }
  webView.setId(R.id.webview);
  return webView;
}

代码示例来源:origin: AndroidHensen/YaNi

@Override
protected WebView createRefreshableView(Context context, AttributeSet attrs) {
  WebView webView;
  if (VERSION.SDK_INT >= VERSION_CODES.GINGERBREAD) {
    webView = new InternalWebViewSDK9(context, attrs);
  } else {
    webView = new WebView(context, attrs);
  }
  webView.setId(R.id.webview);
  return webView;
}

代码示例来源:origin: stackoverflow.com

LinearLayout ansCellLayout = (LinearLayout) findViewById(R.id.linearLayout);
   WebView answerHtml = new WebView(this);
   answerHtml.setId(1);
   // answerHtml.setOnTouchListener(AnswerListener);
   answerHtml.setBackgroundColor(0);
   answerHtml.setBackgroundResource(R.drawable.ic_launcher);
   answerHtml.getSettings().setJavaScriptEnabled(true);
   answerHtml.loadDataWithBaseURL(null, "test test", "text/html", "utf-8", null);
   ansCellLayout.addView(answerHtml,new LinearLayout.LayoutParams(LayoutParams.MATCH_PARENT,80));

代码示例来源:origin: stackoverflow.com

RelativeLayout popwindow=new RelativeLayout(this);
 FrameLayout.LayoutParams rl= new FrameLayout.LayoutParams(FrameLayout.LayoutParams.WRAP_CONTENT, 50);
 popwindow.setLayoutParams(rl);
 WebView w= new WebView(this);
 w.setId(0X100);
 w.setScrollContainer(false);
 RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.FILL_PARENT, 50);
 params.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM);
 w.setLayoutParams(params);
 Button b=new Button(this);
 b.setId(0X101);
 b.setText("X");
 b.setBackgroundColor(Color.TRANSPARENT);
 RelativeLayout.LayoutParams bparams = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, ReloativeLayout.LayoutParams.WRAP_CONTENT);
 bparams.addRule(RelativeLayout.ALIGN_PARENT_RIGHT);
 bparams.addRule(RelativeLayout.ALIGN_TOP, w.getId());
 b.setLayoutParams(bparams);        
 popwindow.addView(w);
 popwindow.addView(b);
 setContentView(popwindow);

代码示例来源:origin: stackoverflow.com

super(context);
mWebView = new WebView(context);
mWebView.setId(0X100);
mWebView.setScrollContainer(false);
RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(

代码示例来源:origin: stackoverflow.com

.getParent() == null ? this : googleMapsActivity
  .getParent()));
webView.setId(2);
webView.getSettings().setDefaultZoom(ZoomDensity.MEDIUM);
webView.getSettings().setJavaScriptEnabled(true);

代码示例来源:origin: stackoverflow.com

wView.setId("my_view");
wView.setPrefHeight(200);
wView.setPrefWidth(200);

代码示例来源:origin: GeoODK/collect

mImageDisplay.setId(QuestionWidget.newUniqueId());
mImageDisplay.getSettings().setCacheMode(WebSettings.LOAD_NO_CACHE);
mImageDisplay.getSettings().setBuiltInZoomControls(true);

相关文章

WebView类方法