ScrollView Not Scrolling

dunski

Member
Licensed User
Longtime User
Do I have to add views to a scrollView through code in order for the scroll to work anybody?
I have done scrollViews already adding the views through a loop no problem but,
I don't want to do this one through code as I have just spent half the day carefully arranging lots of buttons, text fields and and labels of different sizes for a Registration form.

Is there some code I need to add to make the thing scroll?

:sign0163:

:sign0085:

:sign0104:
 

klaus

Expert
Licensed User
Longtime User
I don't want to do this one through code as I have just spent half the day carefully arranging lots of buttons, text fields and and labels of different sizes for a Registration form.
Where and how did you define the layout and what is the height of the layout and how did you add the layout onto the ScrollView.Panel ?

Best regards.
 
Upvote 0

dunski

Member
Licensed User
Longtime User
t
Where and how did you define the layout and what is the height of the layout and how did you add the layout onto the ScrollView.Panel ?

Best regards.

I just added it to the abstract designer. Then set it to 420 in height. added a load of views on top of it.

That's about it.

What do I have to do with the ScrollView.Panel?
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
I just added it to the abstract designer. Then set it to 420 in height. added a load of views on top of it.
Unfortunately the views you added don't have the ScrollView as parent but the Activity.
You should add the views on a Panel in the Designer, only the views you want to have in the ScrollView, save it in a layout file and load this layout file onto the ScrollView.Panel. Then you must set the ScrollView.Panel.Height to the height of the panel in the layout file.

Have a look at this ScrollView example with a panel higher than the screen.
As margret already suggested you there are examples in ScrollView examples summary.

Best regards.
 
Upvote 0

dunski

Member
Licensed User
Longtime User
Upvote 0
Top