2016-04-15 12 views

答えて

1

目的を達成するためにフラグメントを使用します。例:

<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> 

フラグは、Googleマップと一致するように定義され、幅は100dpに一致するように定義されています。このフラグメントの下にレイアウトを定義したり、必要に応じてレイアウトをカスタマイズすることができます。

関連する問題