Add a Label to a Scrollview

malcolmfowler

Member
Licensed User
Longtime User
Newbie question.

I have about 10 to 20 lines of text in a Label that I would like to be scrollable.

How do a simply link a Label to a Scrollview?

I thought I might be able to drag and drop the label onto the scrollview in the designer but that doesn't work.

I though I might find a 'Child' property for the Scrollview in the designer.

I looked at the exaples in the tutorial but they are more cmplex than I need at the moment
 
U

unba1300

Guest
I have a label in my app on the Activity; added much text with code, and it scrolls up and down without a scrollview. Surprising.
 
Upvote 0
U

unba1300

Guest
Sorry, it looks like it must have been a disabled edittext that I was using rather than a label. That scrolls up and down by clicking and dragging anywhere within that disabled edittext.

I am using the recommended AVD (API Level 8, Platform 2.2)

I've been switching back and forth between an edittext and a label to use to show the user a short story. Now I'm using a disabled edittext with a transparent background and white text. Although it may not be obvious to the user that they may need to scroll down to see more text.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…