Hello Views、Google Map Viewをフォローしましたが、TextView
下に を追加したいと思いますMapView
。レイアウト ファイルのみを変更し、とを垂直にmain.xml
配置しました。私の Eclipse はこれを自動的にビルドするように設定されていますが、エミュレーターでアプリケーションを実行すると、.MapView
TextView
LinearLayout
MapView
TextView
a の下に 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>