Android Question ScrollView in StdActionBar, why it is not able to scroll?

incendio

Well-Known Member
Licensed User
Longtime User
Hi guys,

I am using StdActionBar with ScrollView, codes is like this
B4X:
Private ScvVw As ScrollView
Sub Activity_Create(FirstTime As Boolean)
    Dim height As Int = CalculateHeight(True, False)
    vp.Initialize("vp", 2, 100%x, height)
    Activity.AddView(vp.AsView, 0, 0, 100%x, height)
    vp.Panels(0).LoadLayout("sales")
    vp.Panels(1).LoadLayout("Lay1")

    ScvVw.Panel.LoadLayout("others")
End Sub

The ScrollView on the layout 'Lay1' and other views (edittext,label,etc) are in 'others' Layout and they are design by the Designer.
I am not able to scroll the screen in the layout Lay1.

Am I missing something?
 
Last edited:

incendio

Well-Known Member
Licensed User
Longtime User
Found the problem. It was caused by ScrollView, which need a minimum Height to be able to scroll.

Attached is the simplified ver of the project. Scrollview in this project doesn't works, but if you change the panel Height to more than 430, than Scrollview works ok.

Setting Vertical Anchor to BOTH didn't work either.

Is this a limitation of ScrollView?
 

Attachments

  • ScrollView.zip
    9.8 KB · Views: 157
Upvote 0
Top