Dennis Winter
Dennis Winter

Reputation: 2037

Is it possible to scoll a LinearLayout

I'm filling programmatically a LinearLayout with some TextViews using the addView() method.

Is it even possible to let a LinearLayout scroll? Is there a widget that I could use instead? I tried quite a few but nothing worked.

I found a few websites that recommended to use a TextView to create a scrolling area, but a TextView won't take "subviews", right?

Thanks in advance!
S.

Upvotes: 0

Views: 599

Answers (1)

Blumer
Blumer

Reputation: 5035

Sounds like you want to put your LinearLayout inside a ScrollView.

Upvotes: 3

Related Questions