Thanks Romain, no idea how I failed to find this when searching for
"scroll", "tab host" and "view".


On Mar 27, 4:17 pm, Romain Guy <[email protected]> wrote:
> You need to use a ScrollView inside your tab.
>
>
>
> On Fri, Mar 27, 2009 at 8:47 AM, mafro <[email protected]> wrote:
>
> > 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>
>
> --
> Romain Guy
> Android framework engineer
> [email protected]
>
> Note: please don't send private questions to me, as I don't have time
> to provide private support.  All such questions should be posted on
> public forums, where I and others can see and answer them
--~--~---------~--~----~------------~-------~--~----~
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