I have the following layout:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:isScrollContainer="true"> <Gallery android:id="@+id/gallery" android:layout_width="fill_parent" android:layout_height="wrap_content" android:gravity="bottom"/> <LinearLayout android:id="@+id/chart" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1" /> </LinearLayout>
The gallery is populated at runtime, and when the user clicks on an item, I populate LinearLayout with a series of images. I would like to scroll vertically, but if I add a ScrollView when the user deletes the gallery, LinearLayout will no longer fill.
This is normal? How can I add vertical scroll?
Thank you and congratulations.
Cris
source share