ZoomControls on Google Maps API - how can I move it above a ButtonBar?

ganeden

New Member
I have enabled the built in zoom controls in my google maps application, however, it shows on my footer button panel:
r88E4.png
I want the zoom controls to be one top of the footer button bar.\[code\]public class MinuteMapActivity extends MapActivity {/** Called when the activity is first created. */@Overridepublic void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); // the methods on the map are initialised here - onCreate zoomControls(); satelliteDisplay(); snapToMap();}// method for Zoomcontrolsprivate void zoomControls() { LinearLayout zoomControls = (LinearLayout) findViewById(R.id.zoomControls); MapView zoomLayout = (MapView) findViewById(R.id.MapView); //zoomControls.addView(zoomLayout, new LinearLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT)); zoomLayout.setBuiltInZoomControls(true);}\[/code\]XML Layout:\[code\]?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"android:layout_width="fill_parent"android:layout_height="fill_parent"android:eek:rientation="vertical" ><com.google.android.maps.MapView android:id="@+id/MapView" android:layout_width="fill_parent" android:layout_height="fill_parent" android:enabled="true" android:clickable="true" android:apiKey="0zZsLcQS5Zeiqjbo1n8-nn2CqtxKIuTq2T6bskg" /><!-- set zoom controls on map at the bottom --><LinearLayout android:id="@+id/zoomControls" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:layout_centerHorizontal="true" />\[/code\]If I enable \[code\]//zoomControls.addView(zoomLayout, new LinearLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT)); \[/code\]it crashes.Some assistance on how I can move the zoomcontrols above the bottom bar.
 
Top