初めてAndroidで地図を表示しようとしています。I want to display 3 buttons on the map, and when I clicked on a particular button, that button's click event should be raised.
これで、地図が全画面表示になり、ボタンが下側に表示されます。
どうすればいいのかわからない?MapViewを使用して地図を表示する場合は、MapActivityクラスを拡張する必要があります。だから、いくつかのアイデア、例、または参照サイトを提案してください。
編集:
次のレイアウトを使用して地図を表示しました。
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<com.google.android.maps.MapView
android:id="@+id/mapView01"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:enabled="true"
android:clickable="true"
android:apiKey="my generated api key"
/>
<Button
android:text="Button"
android:id="@+id/Button01"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
</Button>
</LinearLayout>