I am trying to have 2 tableviews on 1 screen (ipad screen)
i can get one to work fine, but i cant put anything in the cells.
is there something i have to do to get a 2nd?
I CAN change the cell height in the 2nd one, so i know it has addressability. but just trying to add a single line to the cell doesnt work. comes up blank
While I don't recommend using TableView there shouldn't be a problem adding multiple tables with the designer.
I tried it and it worked fine:
B4X:
Private Sub Application_Start (Nav As NavigationController)
NavControl = Nav
Page1.Initialize("Page1")
Page1.Title = "Page 1"
Page1.RootPanel.LoadLayout("1")
NavControl.ShowPage(Page1)
For i = 1 To 10
TableView1.AddSingleLine(i)
Next
For i = 21 To 30
TableView2.AddSingleLine(i)
Next
End Sub
Try to call Table.ReloadAll if the data doesn't appear.