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

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

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

WebView.setVerticalScrollBarEnabled介绍

暂无

代码示例

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

setContentView(R.layout.main);
 WebView view = new WebView(this);
 view.setVerticalScrollBarEnabled(false);
 ((LinearLayout)findViewById(R.id.inset_web_view)).addView(view);
 view.loadData(getString(R.string.hello), "text/html; charset=utf-8", "utf-8");

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

webView.getSettings().setJavaScriptEnabled(true);
webView.addJavascriptInterface(new AndroidBridge(), "android");
webView.setVerticalScrollBarEnabled(false);
webView.loadUrl("file:///android_asset/index.html");

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

webView.setVerticalScrollBarEnabled(false);
webView.loadUrl("http://www.example.com");

代码示例来源:origin: facebook/facebook-android-sdk

webView.setVerticalScrollBarEnabled(false);
webView.setHorizontalScrollBarEnabled(false);
webView.setWebViewClient(new DialogWebViewClient());

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

mWebView.setVerticalScrollBarEnabled(false);
mWebView.setHorizontalScrollBarEnabled(false);
mWebView.setWebViewClient(new Twitter_Dialog.DialogWebViewClient());

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

boolean isUserGesture, Message resultMsg) {
mWebviewPop = new WebView(mContext);
mWebviewPop.setVerticalScrollBarEnabled(false);
mWebviewPop.setHorizontalScrollBarEnabled(false);
mWebviewPop.setWebViewClient(new UriWebViewClient());

代码示例来源:origin: wangdan/AisenWeiBo

large.getSettings().setDisplayZoomControls(false);
large.setVerticalScrollBarEnabled(false);
large.setHorizontalScrollBarEnabled(false);

代码示例来源:origin: wangdan/AisenWeiBo

webview.getSettings().setSupportZoom(false);
webview.setVerticalScrollBarEnabled(false);
webview.setHorizontalScrollBarEnabled(false);

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

winManager = (WindowManager) getSystemService(Context.WINDOW_SERVICE);
webView = new WebView(this);
webView.setVerticalScrollBarEnabled(false);
webView.setWebViewClient(client);

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

Try to the following code

WebView mWebView = (WebView) findViewById(R.id.webView1);
mWebView.getSettings().setSupportZoom(true);
mWebView.setVerticalScrollBarEnabled(true);
mWebView.loadUrl("path/to.html");

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

WebView mWeb = new WebView(getActivity());
  WebSettings webSettings = mWeb.getSettings();
  webSettings.setJavaScriptEnabled(true);
  mWeb.setVerticalScrollBarEnabled(true);
  Bundle args = getArguments();
mWeb.loadUrl("file:///android_asset/www/index"+args.getInt(ARG_SECTION_NUMBER)+".html");
return mWeb;

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

onCreate(Bundle savedInstanceState){
setContentView(R.layout.web_layout);
 WebView view = (WebView)findViewById(R.id.web_view);
  view.setVerticalScrollBarEnabled(false);
  view.loadData(getString(R.string.web_text), "text/html; charset=utf-8", "utf-8");
}

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

WebView wv= (WebView) findViewById(R.id.wv);
wv.setVerticalScrollBarEnabled(true);
wv.setHorizontalScrollBarEnabled(true);
wv.getSettings().setBuiltInZoomControls(true);
wv.getSettings().setJavaScriptEnabled(true);
wv.setWebViewClient(new WebViewClient());
wv.loadUrl("https://docs.google.com/file/d/0B8ZDVNCvRWK8c3YzQVFaWjg1bEU/edit")//pdf uploaded to google docs. Some cases requires users to login and requires permission of the owner of the doc.

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

WebView wv= (WebView) findViewById(R.id.wv);
  wv.setVerticalScrollBarEnabled(true);
  wv.setHorizontalScrollBarEnabled(true);
  wv.getSettings().setBuiltInZoomControls(true);
  wv.getSettings().setJavaScriptEnabled(true);
  wv.setWebViewClient(new WebViewClient());
  wv.loadUrl("https://docs.google.com/file/d/0B8ZDVNCvRWK8c3YzQVFaWjg1bEU/edit");

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

final WebView myWebView = (WebView) findViewById(R.id.webview);
myWebView.setVerticalScrollBarEnabled(false);
myWebView.setHorizontalScrollBarEnabled(false);
WebSettings webSettings = myWebView.getSettings();
webSettings.setJavaScriptEnabled(true);
webSettings.setJavaScriptCanOpenWindowsAutomatically(true);

代码示例来源:origin: ckcz123/PKUHelper-Android

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
             Bundle savedInstanceState) {
  View rootView = inflater.inflate(R.layout.classroom_fragement,
      container, false);
  webView = (WebView) rootView.findViewById(R.id.classroom_view);
  webView.setVerticalScrollBarEnabled(false);
  webView.setHorizontalScrollBarEnabled(false);
  showView(getArguments().getInt("index"));
  return rootView;
}

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

String LocalFile = "file:///android_asset/YOUR_HTML_FILE.htm";
 WebView webView = (WebView) findViewById(R.id.YOUR_WEB_VIEW);
 WebSettings webSettings = webView.getSettings();
 webSettings.setJavaScriptEnabled(true);
 webSettings.setPluginsEnabled(true);
 webSettings.setLoadWithOverviewMode(true);
 webSettings.setUseWideViewPort(true); 
 webSettings.setAllowFileAccess(true);
 webView.setBackgroundColor(Color.BLACK);
 webView.setVerticalScrollBarEnabled(false);
 webView.setHorizontalScrollBarEnabled(false);
 webView.loadUrl(LocalFile);

代码示例来源:origin: geniusgithub/Look-Around

private void onUIReady(View view){
  ButterKnife.bind(this, view);
  mWebView.setVerticalScrollBarEnabled(false);
  mWebView.setHorizontalScrollBarEnabled(false);
  mWebView.requestFocus();
  WebSettings webSettings = mWebView.getSettings();
  webSettings.setJavaScriptEnabled(true);
  webSettings.setBuiltInZoomControls(true);
  webSettings.setSupportZoom(true);
  webSettings.setCacheMode(WebSettings.LOAD_NO_CACHE);
  initData(getParentActivity().getIntent());
}

代码示例来源:origin: ckcz123/PKUHelper-Android

@SuppressWarnings("unchecked")
public Shows getHtml(String title, String url) {
  subActivity.setContentView(R.layout.subactivity_webview);
  subActivity.getActionBar().setTitle(title);
  subActivity.webView =
      (WebView) subActivity.findViewById(R.id.subactivity_webview);
  subActivity.webView.setVerticalScrollBarEnabled(false);
  subActivity.webView.setHorizontalScrollBarEnabled(false);
  new RequestingTask(subActivity, "正在获取详细信息...", url
      , Constants.REQUEST_SUBACTIVITY_SHOWS_DETAIL)
      .execute(new ArrayList<Parameters>());
  return this;
}

代码示例来源:origin: andforce/iBeebo

public void initView() {
  mWebView = (WebView) findViewById(R.id.webview);
  mInjectJS = new InjectJS(mWebView);
  mWebView.setVerticalScrollBarEnabled(false);
  mWebView.setHorizontalScrollBarEnabled(false);
  mWebView.requestFocus();
  WebSettings webSettings = mWebView.getSettings();
  webSettings.setJavaScriptEnabled(true);
  webSettings.setBuiltInZoomControls(true);
  webSettings.setSaveFormData(true);
  webSettings.setSupportZoom(true);
  webSettings.setCacheMode(WebSettings.LOAD_NO_CACHE);
  progressBar = findViewById(R.id.show_request_progress_bar);
}

相关文章

WebView类方法