Android Question Weird Panel Height Problem

ykucuk

Well-Known Member
Licensed User
Longtime User
Hello,

I have kind a weird problem with panels which created runtime.

I have one scrollview and i list my records as panel. Each record is presented with one panel.

Panels has child inside (Labels). You can check 1.png .

My Problem is sometimes All panels height in scrollview changed themselves. You can check 2.png

You can see easily Panel heights changed as PLACE BID button's height. (PLACE BUTTON is also in panel.)

Panel names,tag, event names are different.

How can i fix this problem ?

Best regards
 

Attachments

  • 1.png
    1.png
    191.3 KB · Views: 150
  • 2.png
    2.png
    185 KB · Views: 165

ykucuk

Well-Known Member
Licensed User
Longtime User
Thanks Erel but its huge project and its very hard to change now.

is that bug ? is there any solution for solve this ?

Thanks
 
Upvote 0

ykucuk

Well-Known Member
Licensed User
Longtime User
B4X:
Dim pnl As Panel ' Globals


Sub bla
pnl.Initialize("pnlNearestPosts")
        pnl.Background = cdw  
        pnl.Color= Colors.White
        scvDashBoard.Panel.AddView(pnl,1%x,1.5%x + (Counter*76.5%x),94%x,74%x)
end sub
 
Upvote 0

Diabolus

Member
Licensed User
Longtime User
Any solution? I have the same problem.

I got a Panel with a Scrollview (the scrollview has the panel as parent, added in visual designer). And later at runtime I change the Panel height from 120dip to 350dip, then the graphics fucks up. The panels graphic resizes to 120, sometimes direct and sometimes when you touch the scrollview. I can still se the whole Scrollview so the panels real height is 350dip but its graphic only goes down to 120dip. Under 120 it shows the activitys background graphics. This is very strange. Using B4A 5.80 and my phone has Android 5.1.
 
Upvote 0
Top