I have a Linearlayout with a tabhost. Intermittently the listview
under tab3 will disappear when navigating to it.
It is difficult to replicate the problem with any consistency.  It
seems to just happen randomly but I certain there is a specific
trigger.  I just can't find it nor understand what is causing the
listview not to appear when the tab is selected.  The only way to fix
it is to restart the app.

Anyone have any ideas?

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
        xmlns:android="http://schemas.android.com/apk/res/android";
        android:orientation="vertical"
        android:background="#336633"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        >
        <TextView
                android:id="@+id/widget173"
                android:text="Shop 'n Stock"

                android:layout_width="fill_parent"
                android:layout_height="26px"
                android:textSize="16px"
                android:drawableLeft="@drawable/hgsmgrey"
                android:drawablePadding="10px"
                android:textStyle="italic"
                >
        </TextView>

        <TextView
                android:id="@+id/widget93"
                android:text="Main Menu"

        android:textColor="#ffffff"
                android:paddingTop="4px"
                android:layout_width="fill_parent"
                android:layout_height="30px"
                android:textStyle="bold"
                android:paddingLeft="116px"
                android:background="@drawable/grad"
                android:layout_marginBottom="10px"
                >
        </TextView>

        <TabHost
                android:id="@+id/tabhost"
                android:layout_width="fill_parent"
                android:layout_height="270px"
                >
                <TabWidget
                        android:id="@android:id/tabs"
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content"
                />

                <FrameLayout
                        android:id="@android:id/tabcontent"
                        android:layout_width="fill_parent"
                        android:layout_height="fill_parent"
                        android:paddingTop="72px"
                >
                        <ListView
                                android:id="@+id/tab1"
                                android:layout_width="fill_parent"
                                android:layout_height="fill_parent"
                                />

                        <ListView
                                android:id="@+id/tab2"
                                android:layout_width="fill_parent"
                                android:layout_height="fill_parent"
                                />
                        <ListView
                                android:id="@+id/tab3"
                                android:layout_width="fill_parent"
                                android:layout_height="fill_parent"
                                />
                </FrameLayout>
        </TabHost>

        <TextView
                android:id="@+id/widget83"
                android:text="Message!"

                android:layout_marginTop="20px"
                android:layout_width="fill_parent"
                android:layout_height="30px"
                android:textStyle="italic"
                android:paddingLeft="50px"
                android:background="#336633"
                android:textSize="20px"
        >
        </TextView>

        <TextView
                android:id="@+id/widget82"
                android:paddingTop="30px"
                android:layout_width="fill_parent"
                android:layout_height="60px"
                android:background="#336633"
                android:drawableBottom="@drawable/hgmedgrey"
                >
        </TextView>
</LinearLayout>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" 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-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to