私は各アクティビティの基本レイアウトを作成しようとしています。レイアウトにはアクションバーとフッターがあります。私マーカーをロードする方法がありますandroid googleマップの質問
<include layout="@layout/actionbar" android:layout_height="wrap_content" android:layout_width="fill_parent"> </include> <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:enabled="true" android:apiKey="@string/mapAppId" /> <include layout="@layout/footer" android:layout_height="wrap_content" android:layout_width="fill_parent"> </include>
: 私は定期的な活動のフッターを表示するには問題がないが、私はそれをXMLに追加しているものの、MapViewの活動は、私のフッターを表示しません。マップの読み込みが完了した後でMapViewで?地図がロードされる前にマーカーが表示されることがあります。
ありがとう!
<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="0dp"
android:layout_weight="2"
android:clickable="true"
android:enabled="true"
android:apiKey="@string/mapAppId" />
<include layout="@layout/footer"
android:layout_height="wrap_content"
android:layout_width="fill_parent">
</include>
注意を払うアンドロイド:layout_heightとAndroid:マップ内layout_weight
を表示する前にロードされているかどうかを確認する方法がわかりません。私は彼に私のフッタのための部屋を残すように言うことができる方法はありますか? –