I have a ScrollView that I've been using for some time and the height is of each entry is 50dip
and I normally use
If I change the PLC_Variables.EntryHeight to 40dip and run the same code (Just making the entries smaller) ScrollView will not scroll.
I need to add this code by Erl
(https://www.b4x.com/android/forum/t...after-panel-height-is-adjusted.49033/#content)
What gives. If I change the panel height back to 50dip I don't need that JavaObject "requestLayout" to scroll at 40dip, 45dip I do.
Can someone explain what "requestLayout" is doing? and when to use it. Should I do this ALL the time when setting the Panel.Height? I've had this problems in other parts of my code and could not understand why the window would not scroll.
Just seems like a bug in ScrollView to me
BobVal
PS: To anyone reading today Merry Christmas.
and I normally use
B4X:
' WindowInfoList is a list of of how many entries I added
' PLC_Variables.EntryHeight is set to 50dip
SVPlayerList.Panel.Height = (WindowInfoList.Size * PLC_Variables.EntryHeight)
If I change the PLC_Variables.EntryHeight to 40dip and run the same code (Just making the entries smaller) ScrollView will not scroll.
I need to add this code by Erl
(https://www.b4x.com/android/forum/t...after-panel-height-is-adjusted.49033/#content)
B4X:
Dim jo As JavaObject = SVPlayerList.Panel
jo.RunMethod("requestLayout", Null)
What gives. If I change the panel height back to 50dip I don't need that JavaObject "requestLayout" to scroll at 40dip, 45dip I do.
Can someone explain what "requestLayout" is doing? and when to use it. Should I do this ALL the time when setting the Panel.Height? I've had this problems in other parts of my code and could not understand why the window would not scroll.
Just seems like a bug in ScrollView to me
BobVal
PS: To anyone reading today Merry Christmas.