List of usage examples for android.view View SCROLLBARS_INSIDE_OVERLAY
int SCROLLBARS_INSIDE_OVERLAY
To view the source code for android.view View SCROLLBARS_INSIDE_OVERLAY.
Click Source Link
From source file:de.mayflower.cordova.androidscrollbar.AndroidScrollbar.java
@Override public void initialize(CordovaInterface cordova, CordovaWebView cdvWebView) { super.initialize(cordova, cdvWebView); try {/*from ww w .j a v a2 s . co m*/ this.webView = (WebView) (cdvWebView.getEngine().getView()); } catch (ClassCastException e) { this.webView = null; return; } this.webView.setScrollBarStyle(View.SCROLLBARS_INSIDE_OVERLAY); }
From source file:vn.cybersoft.obs.android.fragments.AboutFragment.java
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(LAYOUT_ID, container, false); // Load content mWebView = (WebView) view.findViewById(R.id.webview); mWebView.setScrollBarStyle(View.SCROLLBARS_INSIDE_OVERLAY); String helpFileName = "about_en.html"; /*if (Preferences.getInstance().getLanguage().equals("en")) helpFileName="about_us.html";// w w w . j a va2 s . co m else helpFileName="about_us_vi.html";*/ String html = Utils.getFileContent(inflater.getContext(), helpFileName); mWebView.loadDataWithBaseURL(null, html, "text/html", "utf-8", null); return view; }
From source file:com.clutch.ClutchView.java
public ClutchView(Context context) { super(context); this.setScrollBarStyle(View.SCROLLBARS_INSIDE_OVERLAY); this.setHorizontalScrollBarEnabled(false); this.clutchInit(); }
From source file:com.hua.nowid.activity.WebViewFragment.java
/** * Called to instantiate the view. Creates and returns the WebView. *//*from ww w .j ava 2 s .c o m*/ @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { if (mWebView != null) { mWebView.destroy(); } parentVG = container; mWebView = new WebView(getActivity()); mWebView.setScrollBarStyle(View.SCROLLBARS_INSIDE_OVERLAY); mWebView.setVerticalScrollBarEnabled(true); mIsWebViewAvailable = true; updateSecureCookie(); return mWebView; }
From source file:com.clutch.ClutchView.java
public ClutchView(Context context, AttributeSet attrs) { super(context, attrs); this.setScrollBarStyle(View.SCROLLBARS_INSIDE_OVERLAY); this.setHorizontalScrollBarEnabled(false); this.clutchInit(); }
From source file:net.naonedbus.utils.InfoDialogUtils.java
/** * Afficher une dialog avec un contenu au format HTML * /*from w w w.j a v a2 s.co m*/ * @param context * @param html */ public static void showHtml(final Context context, final String html) { AlertDialog.Builder moreDetailsDialog = null; final WebView webView = new WebView(context); final ScrollView scrollView = new ScrollView(context); webView.setScrollBarStyle(View.SCROLLBARS_INSIDE_OVERLAY); webView.setBackgroundColor(Color.WHITE); webView.loadDataWithBaseURL("fake://not/needed", html, "text/html", "UTF-8", null); // Encoding // fix // for // Android // 3.x // / // 4.x scrollView.addView(webView); moreDetailsDialog = new AlertDialog.Builder(context); moreDetailsDialog.setIcon(android.R.drawable.ic_dialog_info); moreDetailsDialog.setTitle("Informations"); moreDetailsDialog.setView(scrollView); moreDetailsDialog.setPositiveButton(android.R.string.ok, null); moreDetailsDialog.show(); }
From source file:com.dwdesign.tweetings.fragment.WebMapFragment.java
/** Sets up the WebView object and loads the URL of the page **/ private void setupWebView() { final WebView webview = getWebView(); webview.setScrollBarStyle(View.SCROLLBARS_INSIDE_OVERLAY); setWebViewClient(new MapWebViewClient(getActivity())); loadUrl(mUri.toString());/*from w w w . ja v a 2 s . c o m*/ final WebSettings settings = webview.getSettings(); settings.setBuiltInZoomControls(false); /** Allows JavaScript calls to access application resources **/ webview.addJavascriptInterface(new JavaScriptInterface(), "android"); }
From source file:com.ezac.gliderlogs.FlightRaspActivity.java
@Override protected void onCreate(Bundle bundle) { super.onCreate(bundle); setContentView(R.layout.view_list);/* w ww. j a va 2s .com*/ // hide soft keyboard setMode(); WebView browser = (WebView) findViewById(R.id.webview_1); browser.setWebViewClient(new WebViewClient()); browser.getSettings().setLoadsImagesAutomatically(true); browser.getSettings().setJavaScriptEnabled(true); browser.setScrollBarStyle(View.SCROLLBARS_INSIDE_OVERLAY); browser.loadUrl("http://blipmaps.nl/showblipmap.php?Param=sfctemp&Day=0&Time=1130&Lang=En&Stage=1"); }
From source file:com.ezac.gliderlogs.FlightOGNActivity.java
@Override protected void onCreate(Bundle bundle) { super.onCreate(bundle); setContentView(R.layout.view_list);// w ww . ja v a 2 s. co m // hide soft keyboard setMode(); WebView browser = (WebView) findViewById(R.id.webview_1); browser.setWebViewClient(new WebViewClient()); browser.getSettings().setSupportZoom(true); browser.getSettings().setBuiltInZoomControls(true); browser.setScrollBarStyle(View.SCROLLBARS_INSIDE_OVERLAY); browser.setScrollbarFadingEnabled(true); browser.getSettings().setLoadsImagesAutomatically(true); browser.getSettings().setDomStorageEnabled(true); browser.getSettings().setAppCacheEnabled(true); browser.getSettings().setAppCacheMaxSize(1024 * 1024 * 32); String appCachePath = getApplicationContext().getCacheDir().getAbsolutePath(); browser.getSettings().setAppCachePath(appCachePath); browser.getSettings().setAllowFileAccess(true); browser.getSettings().setJavaScriptEnabled(true); browser.loadUrl("http://live.glidernet.org/#c=51.27405,3.93909&z=11"); }
From source file:com.ezac.gliderlogs.FlightNotamBLXActivity.java
@Override protected void onCreate(Bundle bundle) { super.onCreate(bundle); setContentView(R.layout.view_list);//from www . j a v a 2s . c om // hide soft keyboard setMode(); WebView browser = (WebView) findViewById(R.id.webview_1); browser.setWebViewClient(new WebViewClient()); browser.getSettings().setLoadsImagesAutomatically(true); browser.getSettings().setJavaScriptEnabled(true); browser.setScrollBarStyle(View.SCROLLBARS_INSIDE_OVERLAY); browser.loadUrl("http://www.notaminfo.com/belgiummap"); }