How to change the position of the Map controller in MapView in android?
How to change the position of the Map controller (zoo开发者_JS百科n in/out) in MapView in android other than the default position in the bottom ?
zoomView = (LinearLayout) mapView.getZoomControls();
zoomView.setLayoutParams(new ViewGroup.LayoutParams
(ViewGroup.LayoutParams.WRAP_CONTENT,
ViewGroup.LayoutParams.WRAP_CONTENT));
zoomView.setGravity(Gravity.BOTTOM | Gravity.CENTER_HORIZONTAL);
mapView.addView(zoomView);
精彩评论