ZoomButtonsController setVisible - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for ZoomButtonsController setVisible method.

This code example shows how to use the following methods:getZoomControls, setOnZoomListener, setVisible
 
    @Override 
    public void dismissZoomPicker() { 
        ZoomButtonsController zoomController = getZoomController();
        if (zoomController != null) {
            zoomController.setVisible(false);
        } 
    } 
 
    @Override 
    public void updateZoomControls() { 
        ZoomButtonsController zoomController = getZoomController();
        if (zoomController == null) {
            return; 
        } 
        boolean canZoomIn = mAwContents.canZoomIn();
        boolean canZoomOut = mAwContents.canZoomOut();
        if (!canZoomIn && !canZoomOut) {
            // Hide the zoom in and out buttons if the page cannot zoom 
            zoomController.getZoomControls().setVisibility(View.GONE);

6
CodeRank
This code example shows how to use the following methods:getZoomControls, isVisible, setOnZoomListener, setVisible
        } 
    } 
 
    void dismissZoomPicker() { 
        ZoomButtonsController zoomControls = getZoomControls();
        if (zoomControls != null && zoomControls.isVisible()) {
            zoomControls.setVisible(false);
        } 
    } 
 
    boolean isMultiTouchZoomSupported() { 
        return !mMultiTouchListener.getPermanentlyIgnoreDetectorEvents();
    } 
 
    boolean isScaleGestureDetectionInProgress() { 
        return isMultiTouchZoomSupported() 
                && mMultiTouchDetector.isInProgress();
    } 
 
    // Passes the touch event to ScaleGestureDetector so that its internal 

6
CodeRank
This code example shows how to use the following methods:getZoomControls, setVisible
 
    @Override 
    public boolean onTouchEvent(MotionEvent ev) {
        boolean result = super.onTouchEvent(ev);
        if (zoomButtons != null) {
            zoomButtons.setVisible(false);
            zoomButtons.getZoomControls().setVisibility(View.GONE);
        } 
        return result;
    } 
 
} 
5
CodeRank
This code example shows how to use the following methods:isVisible, setVisible
        } 
        super.onDestroy(); 
    } 
 
    public void onPageScrolled() { 
        if (zb != null && zb.isVisible()) {
            log.debug("onPageScrolled " + this.pageName);
            zb.setVisible(false);
        } 
    } 
 
    private Bitmap loadBitmap() {
        BitmapFactory.Options options = new BitmapFactory.Options();
        options.inPreferredConfig = Bitmap.Config.RGB_565;
        return BitmapFactory.decodeFile(this.pageName, options);
    } 
} 
4
CodeRank
This code example shows how to use the following methods:setVisible
    public void hideCamera() { 
    	if(Debug.isDebuggerConnected()) Log.i("[appMobi]", "AppMobiVersionedCameraPreview::hideCamera");
    	try { 
			if(mCamera!=null){
				if (zoom != null) {
					zoom.setVisible(false);
					zoom = null;
				} 
			    mCamera.stopPreview();
			    mCamera.release();
			    mCamera = null;
			    wasCameraShown = wasZoomEnabled = false;
			} 
		} catch (Exception e) {
			e.printStackTrace();
		} 
    } 
     
    protected void openCamera() { 
    	if(Debug.isDebuggerConnected()) Log.i("[appMobi]", "AppMobiVersionedCameraPreview::openCamera");
3
CodeRank
This code example shows how to use the following methods:setVisible
    @Override 
    public boolean onTouchEvent(MotionEvent ev) {
        super.onTouchEvent(ev);
        if (zoom_controll != null){
            // Hide the controlls AFTER they where made visible by the default implementation. 
            zoom_controll.setVisible(false);
        } 
        return true; 
    } 
} 
4
CodeRank
This code example shows how to use the following methods:setVisible
	/* 
	 * {@link OnGestureListener} 
	 */ 
	@Override 
	public boolean onDown(MotionEvent e) {
		zoomController.setVisible(false);
		return true; 
	} 
 
	@Override 
	public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX,
			float velocityY) {
 
		final float velocityFactor = 1.5f;
		int minX = (int) (getWidth() - contentWidth);
		int minY = (int) (getHeight() - contentHeight);
		scroller.fling((int) currentX, (int) currentY,
				(int) (velocityX / velocityFactor),
				(int) (velocityY / velocityFactor), minX, 0, minY, 0);
		return true; 
3
CodeRank

Related ZoomButtonsController setVisible Questions & Answers:

setVisible Method Overview
Sets whether the zoom controls should be visible to the user.
See Code Examples for other Android ZoomButtonsController Methods: