Victor Grazi
Victor Grazi

Reputation: 16490

In Android, how to get a scrollpane

I am wondering if there is a widget that acts like a ScrollPane in Swing.

Actually, I am trying to make a layout, where the top has the title bar always visible, and under it have a variable height component that I can scroll vertically, (while leaving the title bar visible)

I am sure this is quite easy but I am not seeing it

Thanks, Victor

Upvotes: 3

Views: 2787

Answers (1)

Guillaume
Guillaume

Reputation: 22822

Yes, you want to wrap your scrollable component(s) or layout in a ScrollView. Keep the "always visible" components out of it, and you'll achieve your desired effect.

API

How to use it

Some tricks to use it

Upvotes: 8

Related Questions