2016-04-15 5 views

Antwort

1

Verwenden Sie Fragment, um Ihr Ziel zu erreichen. Zum Beispiel:

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent" > 

    <fragment 
     android:id="@+id/map" 
     android:name="com.google.android.gms.maps.MapFragment" 
     android:layout_width="match_parent" 
     android:layout_height="100dp" /> 
     <!-- here remaining layout--> 


</RelativeLayout> 

Fragment ist für google map und Breite verwendet, um match_parent und hieght definiert 100dp. Sie können Ihr Layout unterhalb dieses Fragments definieren oder dieses entsprechend Ihren Anforderungen anpassen.