Hi Erel,
I really appreciate the sample from this thread (https://www.b4x.com/android/forum/threads/scrollview-tabstrip.70184/#post-446361) and I see the trick you are using.
But, I would like to have more then just scrollable text displayed on each tab - I would like to have a checkbox or two and other views that should also scroll. Meaning, I would like the flexibility of loading a "layout" into the scrollview, instead of just being limited to text.
Is there any way to modify the below routine so it will return a list of all the scrollviews in the tabstrip so I can then access them and load a different layout into each one:
I really appreciate the sample from this thread (https://www.b4x.com/android/forum/threads/scrollview-tabstrip.70184/#post-446361) and I see the trick you are using.
But, I would like to have more then just scrollable text displayed on each tab - I would like to have a checkbox or two and other views that should also scroll. Meaning, I would like the flexibility of loading a "layout" into the scrollview, instead of just being limited to text.
Is there any way to modify the below routine so it will return a list of all the scrollviews in the tabstrip so I can then access them and load a different layout into each one:
B4X:
Public Sub GetAllTabLabels (tabstrip As TabStrip) As List
Dim jo As JavaObject = tabstrip
Dim r As Reflector
r.Target = jo.GetField("tabStrip")
Dim tc As Panel = r.GetField("tabsContainer")
Dim res As List
res.Initialize
For Each v As View In tc
If v Is Label Then res.Add(v)
Next
Return res
End Sub