When developing Android, we need to place the zoomcontroller of the map in the lower right corner of the map.
By default, we drag the control in eclipse to the editor, and the control is located in the upper left corner of the screen. You can use three property values: Android: layout_gravity, Android: gravity, and Android: width to locate the control in the nine cells.
XMLCode
Copy codeThe Code is as follows: <zoomcontrols Android: Id = "@ + ID/zoomcontroller"
Android: layout_gravity = "bottom" Android: gravity = "right"
Android: layout_width = "fill_parent" Android: layout_height = "wrap_content"> </zoomcontrols>
<Zoomcontrols Android: Id = "@ + ID/zoomcontroller"
Android: layout_gravity = "bottom" Android: gravity = "right"
Android: layout_width = "fill_parent" Android: layout_height = "wrap_content"> </zoomcontrols>
The above Code places the control in the lower right corner. So how to place the control in the middle of the bottom? You only need to change the value of Android: gravity to center.