Scrollview height problem

wl

Well-Known Member
Licensed User
Longtime User
Hello,

I have a scrollview on a second activity ("filter"')
The activity is loaded in the Main activity with:

B4X:
Sub Activity_Create(FirstTime As Boolean)
   StartActivity(filter)
End Sub

In the second activity I'm loading the "filter" layout that just contains a scrollview (svFilters)

B4X:
Sub Activity_Create(FirstTime As Boolean)
   Activity.LoadLayout("filter")
   svFilters.Top = 0
   svFilters.Height = 100%y
End Sub

On my tablet the scrollview only occupies the top half of the screen. In the debugger the height seems to be set correctly though.

Thanks !
 

wl

Well-Known Member
Licensed User
Longtime User
Once again: I just found out myself: it seems I forgot the inner height (this is the scrollview.Panel.Height)
 
Upvote 0
Top