Я следил за Hello Views, Google Map View и теперь хочу добавьте TextView
под MapView
. Я только изменил файл макета main.xml
и поместил MapView
и TextView
по вертикали LinearLayout
. Мой Eclipse настроен на автоматическую сборку, но когда я запускаю приложение в эмуляторе, я вижу только файл MapView
.
Как добавить TextView
под 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>