Code example for WebView

Methods: setLayoutParams, setFocusable

0
			return mScrollView;
		} 
 
		@Override 
		public View getView() {
			mWebView = new WebView(mContext);
			mWebView.setFocusable(false);  // prevent whacky scrolling to focus on a webview
			mWebView.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT));
			 
			mScrollView = new LockingScrollView(mContext);
			mScrollView.addView(mWebView);
			 
			return mScrollView;
		} 
 
		@Override 
		public void onDestroy() { 
			// TODO Auto-generated method stub 
			 
		}