B b4auser1 Well-Known Member Licensed User Longtime User Apr 25, 2017 #1 https://www.b4x.com/android/forum/threads/tableview-with-custom-items.51205/ Code: Copy Private Sub Page1_Resize(Width As Int, Height As Int) tv.SetLayoutAnimated(400, 0.5, 0, 0, 100%x, 100%y) For Each tc As TableCell In tv.GetItems(0) tc.CustomView.Width = 100%x Next End Sub How to re-run designer script for tc.CustomView after tc.CustomView.Width = 100%x ? Or I should perform position re-calculation and re-assigning with B4i code ?
https://www.b4x.com/android/forum/threads/tableview-with-custom-items.51205/ Code: Copy Private Sub Page1_Resize(Width As Int, Height As Int) tv.SetLayoutAnimated(400, 0.5, 0, 0, 100%x, 100%y) For Each tc As TableCell In tv.GetItems(0) tc.CustomView.Width = 100%x Next End Sub How to re-run designer script for tc.CustomView after tc.CustomView.Width = 100%x ? Or I should perform position re-calculation and re-assigning with B4i code ?
Erel B4X founder Staff member Licensed User Longtime User Apr 25, 2017 #2 It should happen automatically assuming that tc.CustomView is a panel and that the Handle Resize Event option is checked in the cell's layout. Upvote 0
It should happen automatically assuming that tc.CustomView is a panel and that the Handle Resize Event option is checked in the cell's layout.