Code example for ZoomButtonsController

Methods: getZoomControls

    // This method is used in tests. It doesn't modify the state of zoom controls. 
    View getZoomControlsViewForTest() {
        return mZoomButtonsController != null ? mZoomButtonsController.getZoomControls() : null;
    private ZoomButtonsController getZoomController() {
        if (mZoomButtonsController == null &&
            mAwContents.getSettings().shouldDisplayZoomControls()) {
            mZoomButtonsController = new ZoomButtonsController(
            mZoomButtonsController.setOnZoomListener(new ZoomListener());
            // ZoomButtonsController positions the buttons at the bottom, but in 
            // the middle. Change their layout parameters so they appear on the 
            // right. 
            View controls = mZoomButtonsController.getZoomControls();
            ViewGroup.LayoutParams params = controls.getLayoutParams();
            if (params instanceof FrameLayout.LayoutParams) {
Stop searching for code, let great code find you!  Add Codota to your java IDE