Hi,
i want to have two Tabs on my screen. I implement a small navi
software and so i decide to use the TabHost:
One tab for list view and one tab for MapView.
Now my problem:
In the MapView tab i want to show the Map and at the bottom of the
screen one row for showing the streetname and a picture for the
direction. I test it with a TextView and a MapView. I've read, that is
must use a Linear/Relative/...-Layout to get more widgets in one tab.
My xml file looks like:

<?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"
    >
<TabHost android:id="@+id/auswahl"
        android:layout_height="fill_parent"
        android:layout_width="fill_parent">

        <TabWidget android:id="@android:id/tabs"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"/>

        <FrameLayout android:id="@android:id/tabcontent"
                android:layout_height="fill_parent"
                android:layout_width="fill_parent"
                android:paddingTop="62px">

                <ListView
                        android:id="@+id/list"
                        android:layout_height="fill_parent"
                        android:layout_width="fill_parent"
                        android:text="List"/>

                <RelativeLayout
                        
xmlns:android="http://schemas.android.com/apk/res/android";
                        android:orientation="vertical"
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content"
                        android:id="@+id/ll">
                        <com.google.android.maps.MapView
                            android:id="@+id/mapview"
                            android:layout_width="fill_parent"
                            android:layout_height="wrap_content"
                            android:apiKey="......."
                        />
                        <TextView
                                android:id="@+id/text"
                                android:layout_height="wrap_content"
                                android:layout_width="fill_parent"
                                android:text="Text"
                                android:layout_below="@id/mapview"
                        />
               </RelativeLayout>
        </FrameLayout>
</TabHost>

I only see the TextView, if i switch TextView with MapView (MapView
below TextView). How can I solve this problem??

Regards,
Stefan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to