I have been away from B4i for a few months and I came back to a mature app to update some code. The previously full-screen iTableViews have shrunk in width away from the full width of the screen. The text and cell divider line run from about 5%x to 95%x in portrait and 20%x to 80%x in landscape.
In other existing apps that have custom iTableView cells the views obey the scripting alignment from the layout and appear as desired i.e. full left aligned and full right aligned to the screen but the cell dividers still only go from about 5%-95%x
An iPhone 4 running iOS 7.1.2 does not exhibit this behaviour. My iPad test device (now iOS 9.2) has had a couple of iOS upgrades since my last coding.... did I miss something? Is this yet another Apple 'Feature' ?
In other existing apps that have custom iTableView cells the views obey the scripting alignment from the layout and appear as desired i.e. full left aligned and full right aligned to the screen but the cell dividers still only go from about 5%-95%x
An iPhone 4 running iOS 7.1.2 does not exhibit this behaviour. My iPad test device (now iOS 9.2) has had a couple of iOS upgrades since my last coding.... did I miss something? Is this yet another Apple 'Feature' ?
B4X:
Sub Process_Globals
Private Page1 As Page
Private TableView1 As TableView
Private Systems As ResultSet
End Sub
Public Sub Show
If Page1.IsInitialized = False Then
Page1.Initialize("Page1")
Page1.Title = "Avionic Systems"
TableView1.Initialize("TableView1",False)
Page1.RootPanel.AddView(TableView1,0,0,100%x,100%y)
Dim Systems As ResultSet
Systems = Main.db.ExecQuery("SELECT * FROM Systems ORDER BY System")
Do While Systems.NextRow
TableView1.AddTwoLines(Systems.GetString("System"),Systems.GetString("LongName"))
Loop
End If
Main.NavControl.ShowPage(Page1)
End Sub
Sub Page1_Resize (Width As Int, Height As Int)
TableView1.SetLayoutAnimated(500, 0.6, 0, 0, 100%x, 100%y)
End Sub
Last edited: