我想将它移到mapview之上。我怎么能改变?
答案 0 :(得分:1)
zoomView = (LinearLayout) mapView.getZoomControls();
zoomView.setLayoutParams(new ViewGroup.LayoutParams
(ViewGroup.LayoutParams.WRAP_CONTENT,
ViewGroup.LayoutParams.WRAP_CONTENT));
zoomView.setGravity(Gravity.TOP | Gravity.CENTER_HORIZONTAL);
mapView.addView(zoomView);