On Dec 14, 9:02 pm, JP <pepe1...@gmail.com> wrote:
> Hi,
>
> I'm really new to Android programming, so this question may be
> obvious, but still I can't find a way to do it: I'm working on a
> layout where the user have to enter many data about a person (name,
> address, birthdate, etc). I'm capturing this information through
> EditText widgets. I added them to a ScrollView, but when I run the
> layout, a bunch of them overlap on the last row of the screen.
> Obviously my idea is to have them one beneath the other and that the
> user can be able to scroll down to continue the entering of data.. How
> can I accomplish this task? Do I have to use more than one layout or
> any other kind of widget?

Yes, you could use a LinearLayout with a vertical orientation inside
of the ScrollView (you're TextView's should be children of the
LinearLayout, not the ScrollView). Check out the Class Overview
description of the ScrollView class which recommends what I've just
described:  
http://developer.android.com/reference/android/widget/ScrollView.html

If you'd like more information on the LinearLayout this documentation
is very helpful: 
http://developer.android.com/guide/topics/ui/layout-objects.html

>
> Thanks in advance!
>
> Regards

-- 
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