Sub Class_Globals
Private Root As B4XView
Private xui As XUI
Private B4XTable1 As B4XTable
Private col1, col2 As B4XTableColumn
End Sub
Public Sub Initialize
End Sub
Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
Root.LoadLayout("MainPage")
col1 = B4XTable1.AddColumn("Col 1 ", B4XTable1.COLUMN_TYPE_NUMBERS)
col2 = B4XTable1.AddColumn("Col 2 ", B4XTable1.COLUMN_TYPE_NUMBERS)
Dim data As List
data.Initialize
For i = 1 To 100
data.Add(Array(i, i))
Next
B4XTable1.SetData(data)
End Sub
Private Sub B4XPage_Resize (Width As Int, Height As Int)
col1.Width = B4XTable1.mBase.Width * 0.2
col2.Width = B4XTable1.mBase.Width - col1.Width - 2dip
B4XTable1.Refresh
End Sub