我想将它移动到地图视图的顶部。我该如何改变?
问问题
289 次
1 回答
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);
于 2012-09-20T06:48:56.097 回答