Android Question ScrollView not show all item on panel

hibrid0

Active Member
Licensed User
Longtime User
Hi guys I have a problem about Scrollview.

I have an ScrollView load inside a Layout where I have a very long panel.
Inside the panel I have many labels and edittex.
My scrollview height size ,sv.Panel.Height=1100%y.
And when I load the activity on the device not show the last 10 items (label+editext), and see the scrollview panel is too long and the panel from the layout is cutted.
I can make scroll well and show me 50/80 edittext and labels and others type of views.
I just at the end.

I show relevant part of the code and images relevant.

B4X:
Activity.LoadLayout("Main_layout")
sv.Initialize(100%y)
    Panel1.AddView(sv,0,0,100%x,100%y)
    sv.Panel.Width=Panel1.Width
    sv.Panel.Height=Panel1.Height
'Sub to accommodate views (Not work from designer script)
accommodate_views
sv.Panel.Height=1100%y
 

Attachments

  • error_layout.png
    error_layout.png
    22.6 KB · Views: 280
  • main_layout.png
    main_layout.png
    16.8 KB · Views: 289
  • panel_long_layout.png
    panel_long_layout.png
    20.3 KB · Views: 281
Last edited:
Top