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

This code example shows how to use the following methods:getContainer, getZoomControls, setAutoDismissed
    public static void init(MapView mapView) {
 
        // ズームボタンの設定 
        mapView.setBuiltInZoomControls(true);
        ZoomButtonsController zoombuttonsCtrl = mapView.getZoomButtonsController();
        LayoutParams params = zoombuttonsCtrl.getContainer().getLayoutParams();
        params.height = LayoutParams.FILL_PARENT;
        zoombuttonsCtrl.setAutoDismissed(false);
        ZoomControls zoomCtrl = (ZoomControls)zoombuttonsCtrl.getZoomControls();
        zoomCtrl.getLayoutParams().width = LayoutParams.FILL_PARENT;;
        zoomCtrl.setGravity(Gravity.RIGHT);
        zoomCtrl.setPadding(0, 65, 0, 0);
         
        // 地図表示 
        mapView.setSatellite(true);
 
        // デフォルトの表示位置、ズームサイズ 
    	mapCtrl = mapView.getController();
        mapCtrl.setCenter(GEO_YOKOHAMA);
        mapCtrl.setZoom(ZOOM_NORMAL);
6
CodeRank
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
setAutoDismissed Method Overview
Sets whether the zoom controls will be automatically dismissed after showing.
See Code Examples for other Android ZoomButtonsController Methods: