I want to move it on top of mapview. how can i change?
Asked
Active
Viewed 297 times
-1
-
show us what you have tried so far? – Ram kiran Pachigolla Sep 20 '12 at 06:48
-
what you have tried for these? – Hardik Joshi Sep 20 '12 at 06:50
-
Refer this post: http://stackoverflow.com/questions/263507/placing-zoom-controls-in-a-mapview – Sep 20 '12 at 06:51
1 Answers
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);

Hardik Joshi
- 9,477
- 12
- 61
- 113