Hey all,

My app uses a TabHost containing one tab with a ListView and another
tab with a simple form. When the keyboard is slid out in order to
write into the form fields, I don't get automagic scroll bars added to
the LinearLayout around my form elements.

Does anyone know why this is? Or indeed how to fix it?

The resource xml follows.

Thanks!
mafro


<TabHost xmlns:android="http://schemas.android.com/apk/res/android";
        android:id="@android:id/tabhost"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent">

        <LinearLayout
                android:orientation="vertical"
                android:layout_width="fill_parent"
                android:layout_height="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_width="fill_parent"
                        android:layout_height="fill_parent">

                        <LinearLayout
                                android:id="@+id/historyview"
                                android:orientation="vertical"
                                android:layout_width="fill_parent"
                                android:layout_height="fill_parent">

                                <ListView
                                        android:id="@+id/history"
                                android:layout_width="fill_parent"
                                        android:layout_height="wrap_content"
                                        android:layout_weight="1" />
                        </LinearLayout>

                        <LinearLayout
                                android:id="@+id/formview"
                                android:orientation="vertical"
                                android:layout_width="fill_parent"
                                android:layout_height="fill_parent">

                                <TextView
                                android:layout_width="fill_parent"
                                        android:layout_height="wrap_content"
                                        android:text="@string/title_en" />
                                <EditText
                                        android:id="@+id/title"
                                android:layout_width="fill_parent"
                                        android:layout_height="wrap_content" />

                                ... snip ...

                                <Button android:id="@+id/send_wake"
                                        android:layout_width="wrap_content"
                                        android:layout_height="wrap_content"
                                        android:layout_gravity="right"
                                        android:text="@string/button_wake_en" />
                        </LinearLayout>

                </FrameLayout>
        </LinearLayout>
</TabHost>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to