Hello,

In my Activity, I have a set of items to display.  I'd like to display
them starting at the bottom of the screen, growing upwards.  If there
are more items than fit on the screen, I want to be able to scroll
through them.

Here's my layout xml:

<ScrollView xmlns:android="http://schemas.android.com/apk/res/android";
        android:layout_width="fill_parent"
android:layout_height="fill_parent">

        <LinearLayout
                xmlns:android="http://schemas.android.com/apk/res/android";
                android:orientation="vertical" android:gravity="bottom"
                android:layout_width="fill_parent"
android:layout_height="fill_parent"
                android:id="@+id/linearLayout">

<!-- Things get inserted into this LinearLayout -->

        </LinearLayout>
</ScrollView>

I get scrolling, but the orientation is from the top - if only a few
items are in the list, they display at the top of the screen instead
of the bottom.

If I remove the ScrollView and make the LinearLayout is my main View
in the Activity, gravity works like I would expect - items show at the
bottom of the screen.  However, I can't scroll if I have a lot of
items.

Is there a good way to get what I'm looking for: bottom gravity and
scrolling?

Thanks,
Chris
--~--~---------~--~----~------------~-------~--~----~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to