Best code examples for WebView setLayoutParams method (android.webkit.WebView.setLayoutParams)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for WebView setLayoutParams method.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

WebView setLayoutParams examples from Open Source projects
This code example shows how to use the following methods: setId, setLayoutParams
189:	WebView webView = new WebView(activity); 
190:	webView.setId(1337); 
-
195:	webView.setLayoutParams(params); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: setVisibility, getSettings, loadUrl, setLayoutParams, setWebViewClient
202:	WebView webView = new WebView(this.getContext()); 
-
204:	webView.setWebViewClient(new AuthorizationWebViewClient()); 
-
206:	WebSettings webSettings = webView.getSettings(); 
-
209:	webView.loadUrl(this.requestUri.toString()); 
210:	webView.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, 
-
212:	webView.setVisibility(View.VISIBLE); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setHorizontalScrollBarEnabled, setVerticalScrollBarEnabled, getSettings, setLayoutParams, setWebViewClient
35:	WebView webView = new WebView(GameActivity.getContext()); 
36:	webView.setVerticalScrollBarEnabled(false); 
37:	webView.setHorizontalScrollBarEnabled(false); 
38:	webView.setWebViewClient(new WebViewClient() { 
-
48:	WebSettings webSettings = webView.getSettings(); 
-
58:	webView.setLayoutParams(new FrameLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT)); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setId, setBackgroundColor, setLayoutParams
238:	WebView webView = new WebView(context); 
239:	webView.setId(WEB_VIEW_ID); 
-
250:	webView.setLayoutParams(params); 
251:	webView.setBackgroundColor(Color.WHITE); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: loadData, setLayoutParams, setView
35:	WebView html = new WebView(c); 
36:	html.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT)); 
37:	html.loadData(loadAssetFile(c, c.getString(filenameid)), "text/html", "UTF-8"); 
-
39:	.setView(html) 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getSettings, loadUrl, setLayoutParams, setScrollBarStyle, setWebChromeClient
29:	WebView webView = new WebView(this); 
30:	webView.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT, 
-
32:	webView.loadUrl(getIntent().getDataString()); 
33:	webView.getSettings().setJavaScriptEnabled(true); 
34:	webView.getSettings().setSupportZoom(true); 
35:	webView.getSettings().setBuiltInZoomControls(true); 
-
37:	webView.setScrollBarStyle(View.SCROLLBARS_INSIDE_OVERLAY); 
38:	webView.getSettings().setUseWideViewPort(true); 
-
42:	webView.setWebViewClient(new WebViewClient() { 
-
67:	webView.setWebChromeClient(new WebChromeClient() { 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: addJavascriptInterface, getSettings, loadUrl, setLayoutParams, setWebChromeClient
24:	mWebView = new WebView(this); 
-
26:	mWebView.setLayoutParams(new LinearLayout.LayoutParams( 
-
29:	mWebView.loadUrl("file:///android_asset/www/index2.html"); 
30:	mWebView.getSettings().setJavaScriptEnabled(true); 
31:	mWebView.addJavascriptInterface(new MyHybrid(), "MyHybrid"); 
32:	mWebView.setWebChromeClient(new WebChromeClient() { 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setHorizontalScrollBarEnabled, setVerticalScrollBarEnabled, getSettings, loadUrl, setLayoutParams
102:	mWebView = new WebView(getContext()); 
103:	mWebView.setVerticalScrollBarEnabled(false); 
104:	mWebView.setHorizontalScrollBarEnabled(false); 
105:	mWebView.setWebViewClient(new FbDialog.FbWebViewClient()); 
106:	mWebView.getSettings().setJavaScriptEnabled(true); 
107:	mWebView.loadUrl(mUrl); 
108:	mWebView.setLayoutParams(FILL); 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods: setHorizontalScrollBarEnabled, setVerticalScrollBarEnabled, setVisibility, getSettings, loadUrl
85:	mWebView = new WebView(getContext()); 
86:	mWebView.setVerticalScrollBarEnabled(false); 
87:	mWebView.setHorizontalScrollBarEnabled(false); 
88:	mWebView.setWebViewClient(new FbDialog.FbWebViewClient()); 
89:	mWebView.getSettings().setJavaScriptEnabled(true); 
90:	mWebView.loadUrl(mUrl); 
91:	mWebView.setLayoutParams(FILL); 
92:	mWebView.setVisibility(View.INVISIBLE); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setHorizontalScrollBarEnabled, setVerticalScrollBarEnabled, getSettings, loadUrl, setLayoutParams
109:	mWebView = new WebView(getContext()); 
-
111:	mWebView.setVerticalScrollBarEnabled(false); 
112:	mWebView.setHorizontalScrollBarEnabled(false); 
113:	mWebView.setWebViewClient(new TwitterWebViewClient()); 
114:	mWebView.getSettings().setJavaScriptEnabled(true); 
115:	mWebView.loadUrl(mUrl); 
116:	mWebView.setLayoutParams(FILL); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getSettings, loadData, setLayoutParams
50:	WebView webview = new WebView(getActivity()); 
51:	webview.getSettings().setBuiltInZoomControls(true); 
52:	webview.loadData(description, "text/html", null); 
-
56:	webview.setLayoutParams(params); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getSettings, loadDataWithBaseURL, setLayoutParams, setView
35:	.setView(wv) 
-
45:	WebView webView = new WebView(context); 
46:	webView.setLayoutParams(params); 
47:	webView.getSettings().setAllowFileAccess(true); 
48:	webView.getSettings().setJavaScriptEnabled(false); 
49:	webView.getSettings().setBuiltInZoomControls(false); 
50:	webView.loadDataWithBaseURL("", getHtml(strokeOrderFile), WEBVIEW_MIME, WEBVIEW_ENCODING, ""); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setHorizontalScrollBarEnabled, setVerticalScrollBarEnabled, getSettings, loadUrl, setLayoutParams
123:	mWebView = new WebView(getContext()); 
124:	mWebView.setVerticalScrollBarEnabled(false); 
125:	mWebView.setHorizontalScrollBarEnabled(false); 
126:	mWebView.setWebViewClient(new GowallaOAuthDialog.OAuthWebViewClient()); 
127:	mWebView.getSettings().setJavaScriptEnabled(true); 
128:	mWebView.getSettings().setSavePassword(false); 
129:	mWebView.loadUrl(mUrl); 
130:	mWebView.setLayoutParams(FILL); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setHorizontalScrollBarEnabled, setVerticalScrollBarEnabled, getSettings, loadUrl, setLayoutParams
138:	webView.setVerticalScrollBarEnabled(false); 
139:	webView.setHorizontalScrollBarEnabled(false); 
140:	webView.setWebViewClient(new PlusYouFacebookWebViewClient(this)); 
141:	webView.getSettings().setJavaScriptEnabled(true); 
142:	webView.getSettings().setSavePassword(false); 
143:	webView.loadUrl(url); 
144:	webView.setLayoutParams(FILL); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setHorizontalScrollBarEnabled, setVerticalScrollBarEnabled, getSettings, loadUrl, setLayoutParams
108:	mWebView = new WebView(getContext()); 
109:	mWebView.setVerticalScrollBarEnabled(false); 
110:	mWebView.setHorizontalScrollBarEnabled(false); 
111:	mWebView.setWebViewClient(new FoursquareDialog.FoursquareWebViewClient()); 
112:	mWebView.getSettings().setJavaScriptEnabled(true); 
113:	mWebView.loadUrl(mUrl); 
114:	mWebView.setLayoutParams(FILL); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setHorizontalScrollBarEnabled, setVerticalScrollBarEnabled, getSettings, loadUrl, setLayoutParams
120:	mWebView = new WebView(getContext()); 
121:	mWebView.setVerticalScrollBarEnabled(false); 
122:	mWebView.setHorizontalScrollBarEnabled(false); 
123:	mWebView.setWebViewClient(new FacebookOAuthDialog.OAuthWebViewClient()); 
124:	mWebView.getSettings().setJavaScriptEnabled(true); 
125:	mWebView.getSettings().setSavePassword(false); 
126:	mWebView.loadUrl(mUrl); 
127:	mWebView.setLayoutParams(FILL); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setVerticalScrollBarEnabled, getSettings, loadUrl, setLayoutParams, setWebChromeClient
175:	webView = new WebView(this); 
-
178:	webView.setLayoutParams(wvParams); 
179:	WebSettings webSettings = webView.getSettings(); 
180:	webView.setVerticalScrollBarEnabled(false); 
-
184:	webView.loadUrl(path); 
185:	webView.setWebChromeClient(new WebChromeClient() { 
-
198:	webView.setWebViewClient(new WebViewClient() { 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setHorizontalScrollBarEnabled, setVerticalScrollBarEnabled, getSettings, loadUrl, setLayoutParams
120:	mWebView = new WebView(getContext()); 
121:	mWebView.setVerticalScrollBarEnabled(false); 
122:	mWebView.setHorizontalScrollBarEnabled(false); 
123:	mWebView.setWebViewClient(new FsqOAuthDialog.OAuthWebViewClient()); 
124:	mWebView.getSettings().setJavaScriptEnabled(true); 
125:	mWebView.getSettings().setSavePassword(false); 
126:	mWebView.loadUrl(mUrl); 
127:	mWebView.setLayoutParams(FILL); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setHorizontalScrollBarEnabled, setVerticalScrollBarEnabled, getSettings, loadUrl, setLayoutParams
101:	mWebView = new WebView(getContext()); 
-
103:	mWebView.setVerticalScrollBarEnabled(false); 
104:	mWebView.setHorizontalScrollBarEnabled(false); 
105:	mWebView.setWebViewClient(new TwitterWebViewClient()); 
106:	mWebView.getSettings().setJavaScriptEnabled(true); 
107:	mWebView.loadUrl(mUrl); 
108:	mWebView.setLayoutParams(FILL); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setHorizontalScrollBarEnabled, setVerticalScrollBarEnabled, addJavascriptInterface, getSettings, loadUrl
121:	webView = new WebView(getContext()); 
122:	webView.setLayoutParams(FILL); 
123:	webView.setHorizontalScrollBarEnabled(false); 
124:	webView.setVerticalScrollBarEnabled(false); 
125:	webView.getSettings().setJavaScriptEnabled(true); 
126:	webView.getSettings().setSavePassword(false); 
127:	webView.getSettings().setSaveFormData(false); 
128:	webView.getSettings().setRenderPriority(HIGH); 
-
130:	webView.setWebChromeClient(new WebChromeClient() { 
-
137:	webView.setWebViewClient(new WebViewClient() { 
-
171:	webView.addJavascriptInterface(new HappyDroidJavascriptInterface(getContext(), this), "happyDroid"); 
-
174:	webView.loadUrl(uriToLoad); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setHorizontalScrollBarEnabled, setVerticalScrollBarEnabled, setVisibility, getSettings, loadUrl
224:	mWebView = new WebView(getContext()); 
225:	mWebView.setVerticalScrollBarEnabled(false); 
226:	mWebView.setHorizontalScrollBarEnabled(false); 
227:	mWebView.setWebViewClient(new InstagramAuthDialog.IgWebViewClient()); 
228:	mWebView.getSettings().setJavaScriptEnabled(true); 
229:	mWebView.getSettings().setSavePassword(false); 
-
232:	mWebView.loadUrl(url); 
233:	mWebView.setLayoutParams(FILL); 
234:	mWebView.setVisibility(View.INVISIBLE); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setHorizontalScrollBarEnabled, setVerticalScrollBarEnabled, getSettings, loadUrl, setLayoutParams
110:	mWebView = new WebView(getContext()); 
-
112:	mWebView.setVerticalScrollBarEnabled(false); 
113:	mWebView.setHorizontalScrollBarEnabled(false); 
114:	mWebView.setWebViewClient(new FoursquareWebViewClient()); 
115:	mWebView.getSettings().setJavaScriptEnabled(true); 
116:	mWebView.loadUrl(mUrl); 
117:	mWebView.setLayoutParams(FILL); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setHorizontalScrollBarEnabled, setVerticalScrollBarEnabled, getSettings, loadUrl, setLayoutParams
107:	webView = new WebView(getContext()); 
108:	webView.setVerticalScrollBarEnabled(false); 
109:	webView.setHorizontalScrollBarEnabled(false); 
110:	webView.setWebViewClient(new CocoafishWebViewClient()); 
111:	webView.getSettings().setJavaScriptEnabled(true); 
112:	webView.loadUrl(url); 
113:	webView.setLayoutParams(FILL); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setHorizontalScrollBarEnabled, setVerticalScrollBarEnabled, getSettings, loadUrl, setLayoutParams
111:	mWebView = new WebView(getContext()); 
112:	mWebView.setVerticalScrollBarEnabled(false); 
113:	mWebView.setHorizontalScrollBarEnabled(false); 
114:	mWebView.setWebViewClient(new FbDialog.FbWebViewClient()); 
115:	mWebView.getSettings().setJavaScriptEnabled(true); 
116:	mWebView.loadUrl(mUrl); 
117:	mWebView.setLayoutParams(FILL); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setHorizontalScrollBarEnabled, setVerticalScrollBarEnabled, getSettings, loadUrl, setLayoutParams
93:	mWebView = new WebView(getContext()); 
94:	mWebView.setVerticalScrollBarEnabled(false); 
95:	mWebView.setHorizontalScrollBarEnabled(false); 
96:	mWebView.setWebViewClient(new OAuthWebViewClient()); 
97:	mWebView.getSettings().setJavaScriptEnabled(true); 
98:	mWebView.loadUrl(mUrl); 
99:	mWebView.setLayoutParams(FILL); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setHorizontalScrollBarEnabled, setVerticalScrollBarEnabled, setVisibility, getSettings, loadUrl
183:	webView = new WebView(getContext()); 
184:	webView.setVisibility(View.INVISIBLE); 
185:	webView.setVerticalScrollBarEnabled(false); 
186:	webView.setHorizontalScrollBarEnabled(false); 
187:	webView.setWebViewClient(new AuthenticationWebViewClient()); 
188:	webView.setWebChromeClient(new AuthenticationWebChromeClient()); 
189:	webView.getSettings().setJavaScriptEnabled(true); 
190:	webView.setLayoutParams(FILL); 
191:	webView.getSettings().setSavePassword(false); 
192:	webView.loadUrl(authUrl); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: clearCache, getSettings, loadUrl, setLayoutParams, setWebChromeClient
33:	mainView=new WebView(this); 
-
35:	mainView.setLayoutParams(new LayoutParams(display.getWidth(), display.getHeight())); 
36:	mainView.clearCache(true); 
37:	mainView.setWebViewClient(new WebViewSampleClient()); 
38:	mainView.setWebChromeClient(new WebChromeClient()); 
-
44:	mainView.getSettings().setJavaScriptEnabled(true); 
-
46:	mainView.loadUrl("file:///android_asset/killer.htm"); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setHorizontalScrollBarEnabled, setVerticalScrollBarEnabled, getSettings, loadUrl, setLayoutParams
84:	mWebView = new WebView(getContext()); 
85:	mWebView.setVerticalScrollBarEnabled(false); 
86:	mWebView.setHorizontalScrollBarEnabled(false); 
87:	mWebView.setWebViewClient(webViewClient); 
88:	mWebView.getSettings().setJavaScriptEnabled(true); 
89:	mWebView.loadUrl(mUrl); 
90:	mWebView.setLayoutParams(FILL); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setClickable, setHorizontalScrollBarEnabled, setVerticalScrollBarEnabled, getSettings, loadUrl
62:	mWebView = new WebView(getContext()); 
-
64:	mWebView.setClickable(true); 
65:	mWebView.setVerticalScrollBarEnabled(true); 
66:	mWebView.setHorizontalScrollBarEnabled(true); 
67:	mWebView.setWebViewClient(new FourSquareWebViewClient()); 
68:	mWebView.getSettings().setJavaScriptEnabled(true); 
69:	mWebView.loadUrl(authUrl); 
70:	mWebView.setLayoutParams(new FrameLayout.LayoutParams(ViewGroup.LayoutParams.FILL_PARENT, ViewGroup.LayoutParams.FILL_PARENT)); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setHorizontalScrollBarEnabled, setVerticalScrollBarEnabled, addJavascriptInterface, getSettings, loadUrl
80:	mWebView = new WebView(getContext()); 
81:	mWebView.setVerticalScrollBarEnabled(false); 
82:	mWebView.setHorizontalScrollBarEnabled(false); 
83:	mWebView.setWebViewClient(new WADialog.WAWebViewClient()); 
84:	mWebView.getSettings().setJavaScriptEnabled(true); 
85:	mWebView.addJavascriptInterface(new HTMLDumpInterface(), JS_INTERFACE); 
86:	mWebView.loadUrl(WA_URL); 
87:	mWebView.setLayoutParams(FILL); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setHorizontalScrollBarEnabled, setVerticalScrollBarEnabled, getSettings, loadUrl, setLayoutParams
92:	mWebView = new WebView(getContext()); 
-
94:	mWebView.setVerticalScrollBarEnabled(false); 
95:	mWebView.setHorizontalScrollBarEnabled(false); 
96:	mWebView.setWebViewClient(new TwitterWebViewClient()); 
97:	mWebView.getSettings().setJavaScriptEnabled(true); 
98:	mWebView.loadUrl(mUrl); 
99:	mWebView.setLayoutParams(FILL); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setHorizontalScrollBarEnabled, setVerticalScrollBarEnabled, getSettings, loadUrl, setLayoutParams
93:	mWebView = new WebView(getContext()); 
94:	mWebView.setVerticalScrollBarEnabled(false); 
95:	mWebView.setHorizontalScrollBarEnabled(false); 
96:	mWebView.setWebViewClient(new OAuthWebViewClient()); 
97:	mWebView.getSettings().setJavaScriptEnabled(true); 
98:	mWebView.loadUrl(mUrl); 
99:	mWebView.setLayoutParams(FILL); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: loadData, setLayoutParams
16:	WebView view = new WebView(this); 
17:	view.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT)); 
-
24:	view.loadData(recipe.toHtml(), "text/html", "UTF-8"); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setHorizontalScrollBarEnabled, setVerticalScrollBarEnabled, getSettings, loadUrl, setLayoutParams
97:	mWebView = new WebView(getContext()); 
-
99:	mWebView.setVerticalScrollBarEnabled(false); 
100:	mWebView.setHorizontalScrollBarEnabled(false); 
101:	mWebView.setWebViewClient(new TwitterWebViewClient()); 
102:	mWebView.getSettings().setJavaScriptEnabled(true); 
103:	mWebView.loadUrl(mUrl); 
104:	mWebView.setLayoutParams(FILL); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setHorizontalScrollBarEnabled, setVerticalScrollBarEnabled, getSettings, loadUrl, setLayoutParams
111:	mWebView = new WebView(getContext()); 
112:	mWebView.setVerticalScrollBarEnabled(false); 
113:	mWebView.setHorizontalScrollBarEnabled(false); 
114:	mWebView.setWebViewClient(new FoursquareDialog.FoursquareWebViewClient()); 
115:	mWebView.getSettings().setJavaScriptEnabled(true); 
116:	mWebView.loadUrl(mUrl); 
117:	mWebView.setLayoutParams(FILL); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setHorizontalScrollBarEnabled, setVerticalScrollBarEnabled, getSettings, loadUrl, setLayoutParams
96:	mWebView = new WebView(getContext()); 
-
98:	mWebView.setVerticalScrollBarEnabled(false); 
99:	mWebView.setHorizontalScrollBarEnabled(false); 
100:	mWebView.setWebViewClient(new TwitterWebViewClient()); 
101:	mWebView.getSettings().setJavaScriptEnabled(true); 
102:	mWebView.loadUrl(mUrl); 
103:	mWebView.setLayoutParams(FILL); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setHorizontalScrollBarEnabled, setVerticalScrollBarEnabled, getSettings, loadUrl, setLayoutParams
98:	mWebView = new WebView(getContext()); 
-
100:	mWebView.setVerticalScrollBarEnabled(false); 
101:	mWebView.setHorizontalScrollBarEnabled(false); 
102:	mWebView.setWebViewClient(new TwitterWebViewClient()); 
103:	mWebView.getSettings().setJavaScriptEnabled(true); 
104:	mWebView.loadUrl(mUrl); 
105:	mWebView.setLayoutParams(FILL); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setHorizontalScrollBarEnabled, setVerticalScrollBarEnabled, clearCache, clearFormData, clearHistory
132:	mWebView = new WebView(getActivity()); 
-
134:	mWebView.clearHistory(); 
135:	mWebView.clearFormData(); 
136:	mWebView.clearCache(true); 
-
138:	mWebView.setVerticalScrollBarEnabled(false); 
139:	mWebView.setHorizontalScrollBarEnabled(false); 
140:	mWebView.setWebViewClient(new StackWebViewClient()); 
-
142:	WebSettings settings = mWebView.getSettings(); 
-
152:	mWebView.loadUrl(mUrl); 
153:	mWebView.setLayoutParams(FILL); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setHorizontalScrollBarEnabled, setVerticalScrollBarEnabled, getSettings, loadUrl, setLayoutParams
87:	mWebView = new WebView(getContext()); 
88:	mWebView.setVerticalScrollBarEnabled(false); 
89:	mWebView.setHorizontalScrollBarEnabled(false); 
90:	mWebView.setWebViewClient(new FbDialog.FbWebViewClient()); 
91:	mWebView.getSettings().setJavaScriptEnabled(true); 
92:	mWebView.loadUrl(mUrl); 
93:	mWebView.setLayoutParams(FILL); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setId, setLayoutParams
189:	WebView webView = new WebView(activity); 
190:	webView.setId(1337); 
-
195:	webView.setLayoutParams(params); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: loadDataWithBaseURL, setLayoutParams
556:	WebView webView = new WebView(context); 
557:	webView.setLayoutParams(new LinearLayout.LayoutParams( 
-
561:	webView.loadDataWithBaseURL(null,data, "text/html", "UTF-8",""); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: setHorizontalScrollBarEnabled, setVerticalScrollBarEnabled, setVisibility, getSettings, loadUrl
267:	webView = new WebView(getContext()); 
268:	webView.setVerticalScrollBarEnabled(false); 
269:	webView.setHorizontalScrollBarEnabled(false); 
270:	webView.setWebViewClient(new DialogWebViewClient()); 
271:	webView.getSettings().setJavaScriptEnabled(true); 
272:	webView.loadUrl(url); 
273:	webView.setLayoutParams(new FrameLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, 
-
275:	webView.setVisibility(View.INVISIBLE); 
276:	webView.getSettings().setSavePassword(false); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setVerticalScrollBarEnabled, addJavascriptInterface, getSettings, setInitialScale, setLayoutParams
83:	appView = new WebView(this); 
84:	appView.setLayoutParams(webviewParams); 
-
90:	appView.setWebChromeClient(new EclairClient(this)); 
-
92:	appView.setWebChromeClient(new GapClient(this)); 
-
94:	appView.setInitialScale(100); 
95:	appView.setVerticalScrollBarEnabled(false); 
-
97:	WebSettings settings = appView.getSettings(); 
-
123:	gap = new PhoneGap(this, appView); 
124:	geo = new GeoBroker(appView, this); 
125:	accel = new AccelListener(this, appView); 
126:	launcher = new CameraLauncher(appView, this); 
127:	mContacts = new ContactManager(this, appView); 
128:	fs = new FileUtils(appView); 
129:	netMan = new NetworkManager(this, appView); 
130:	mCompass = new CompassListener(this, appView); 
-
133:	appView.addJavascriptInterface(gap, "DroidGap"); 
134:	appView.addJavascriptInterface(geo, "Geo"); 
135:	appView.addJavascriptInterface(accel, "Accel"); 
136:	appView.addJavascriptInterface(launcher, "GapCam"); 
137:	appView.addJavascriptInterface(mContacts, "ContactHook"); 
138:	appView.addJavascriptInterface(fs, "FileUtil"); 
139:	appView.addJavascriptInterface(netMan, "NetworkManager"); 
140:	appView.addJavascriptInterface(mCompass, "CompassHook"); 
Full Snippet Info
0
CodeRank
Related WebView setLayoutParams Questions & Answers:
setLayoutParams Method Overview
Set the layout parameters associated with this view.
See Also