普拉文的回答很好。请记住
RelativeLayout
你可以避免不必要的筑巢。布局越简单,维护起来就越容易。这相当于Praveen的回答:
<?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">
<com.google.android.maps.MapView
xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/mapview"
android:layout_width="fill_parent" android:layout_height="fill_parent"
android:clickable="true" android:apiKey="your_id" />
<Button android:layout_below="@+id/mapview"
android:text="@+id/Button03"
android:id="@+id/Button01"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentBottom="true"/>
<Button android:layout_below="@+id/mapview"
android:text="@+id/Button02"
android:id="@+id/Button02"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_alignParentBottom="true"/>
<Button android:text="@+id/Button03"
android:id="@+id/Button01"
android:layout_width="wrap_content"
android:layout_toLeftOf="@+id/mapview"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignParentBottom="true"/>
</RelativeLayout>