Code example for ZoomControls

Methods: setPaddingsetGravity

0
        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);
   } 
 
    /** 
     * 指定された場所を真ん中とする 
     */ 
Stop searching for code, let great code find you!  Add Codota to your java IDE