ZoomButtonsController setZoomSpeed - 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 setZoomSpeed method.

This code example shows how to use the following methods:getContainer, setAutoDismissed, setOnZoomListener, setZoomInEnabled, setZoomOutEnabled
This code example shows how to use the following methods:getContainer, setAutoDismissed, setOnZoomListener, setZoomInEnabled, setZoomOutEnabled
	{ 
		if (mZoomButtons == null) 
		{ 
			ViewGroup parent = (ViewGroup)this.getParent(); 
			 
	    	mZoomButtons = new ZoomButtonsController(parent); 
	    	mZoomButtons.setAutoDismissed(false); 
	    	mZoomButtons.setZoomSpeed(30); 
	    	mZoomButtons.setOnZoomListener(new ZoomButtonsController.OnZoomListener() 
			{ 
				public void onZoom(boolean zoomIn) 
				{ 
					float scale; 
					 
//					Log.d("ZoomableImageView", "onZoom" + (zoomIn ? "In" : "Out")); 
					 
					if (zoomIn) 
						scale = 1.1f; 
					else 
						scale = 0.9f; 

5
CodeRank
setZoomSpeed Method Overview
Sets the delay between zoom callbacks as the user holds a zoom button.
See Code Examples for other Android ZoomButtonsController Methods: