Code example for ZoomButtonsController

Methods: getZoomControls

0
        } 
    } 
 
    // 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(
                    mAwContents.getContentViewCore().getContainerView());
            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