Y ykucuk Well-Known Member Licensed User Longtime User Sep 21, 2016 #1 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 191.3 KB · Views: 450 2.png 185 KB · Views: 473
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
Erel B4X founder Staff member Licensed User Longtime User Sep 21, 2016 #2 Use CustomListView. It will be much simpler. You can also use a layout file for each of the items. [Class] CustomListView - A flexible list based on ScrollView Upvote 0
Use CustomListView. It will be much simpler. You can also use a layout file for each of the items. [Class] CustomListView - A flexible list based on ScrollView
Y ykucuk Well-Known Member Licensed User Longtime User Sep 21, 2016 #3 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
Thanks Erel but its huge project and its very hard to change now. is that bug ? is there any solution for solve this ? Thanks
klaus Expert Licensed User Longtime User Sep 21, 2016 #4 How do you add the Panels? You should show us the code y use, otherwise it's difficult to guess what is wrong. Upvote 0
How do you add the Panels? You should show us the code y use, otherwise it's difficult to guess what is wrong.
Y ykucuk Well-Known Member Licensed User Longtime User Sep 21, 2016 #5 Code: Copy 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
Code: Copy 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
D Diabolus Member Licensed User Longtime User May 17, 2017 #6 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
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.
R ronell Well-Known Member Licensed User Longtime User May 17, 2017 #7 this is an old thread create new thread about your question Upvote 0