Hello Views、Google Map Viewをフォローしましたが、TextView下に を追加したいと思いますMapView。レイアウト ファイルのみを変更し、とを垂直にmain.xml配置しました。私の Eclipse はこれを自動的にビルドするように設定されていますが、エミュレーターでアプリケーションを実行すると、.MapViewTextViewLinearLayoutMapView
TextViewa の下に aを追加するにはどうすればよいMapViewですか?
これが私のレイアウトmain.xmlです:
<?xml version="1.0" encoding="utf-8"?>
<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/mapview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:clickable="true"
android:apiKey="my key"
/>
<TextView
android:id="@+id/textview"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="My TextView"
/>
</LinearLayout>