Code example for WebView

Methods: setBackgroundColorsetInitialScale, getZoomControls

0
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        mContentView = (FrameLayout) getWindow().getDecorView().findViewById(android.R.id.content);
        //iView = (ImageView) findViewById(R.id.ImageView01); 
        webView = (WebView) findViewById(R.id.webview);
        webView.setInitialScale(75);
        webView.setBackgroundColor(1);
        sensorMgr = (SensorManager) getSystemService(SENSOR_SERVICE);
        sensorMgr.registerListener(this,
        		SensorManager.SENSOR_ACCELEROMETER,
        		SensorManager.SENSOR_DELAY_GAME);
//        LayoutParams params = new  
//        	LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT); 
//        webView.setLayoutParams(params); 
        zoom = webView.getZoomControls();
        mContentView.addView(zoom, ZOOM_PARAMS);
        zoom.setVisibility(View.GONE);
         
    }