Adding rows and cells to Grid (A beginner's question)
How to add rows and cells?
First row with only one cell.
Second row with 12 cells.
Rows occupy 100% of the screen width.
What I want:
╔════════════════════════════════╗
║************************************║
╠════════════════════════════════╣
║bnt1|** |** |**|**|**|**|**|**|**|**|btn2║
╚════════════════════════════════╝
What did I do:
Result:
╔═══════╗
║bnt1|btn2║
╚═══════╝
Why empty cells don't keep size?
What am I doing wrong?
Also you know how to put an image as the background of a row?
Thank you
How to add rows and cells?
First row with only one cell.
Second row with 12 cells.
Rows occupy 100% of the screen width.
What I want:
╔════════════════════════════════╗
║************************************║
╠════════════════════════════════╣
║bnt1|** |** |**|**|**|**|**|**|**|**|btn2║
╚════════════════════════════════╝
What did I do:
B4X:
page.AddRowsM (1, False, 0,0, ""). AddCells12 (1, "")
page.AddRowsM (1, False, 0,0, ""). AddCellsOS (12,0,0,0,1,1,1, "")
page.BuildGrid
'Add buttons
Dim btn1 As ABMButton
btn1.Text = "AA"
Dim btn2 As ABMButton
btn2.Text = "BB"
page.Row (2) .Cell (1) .AddComponent (btn1)
page.Row (2) .Cell (12) .AddComponent (btn2)
╔═══════╗
║bnt1|btn2║
╚═══════╝
Why empty cells don't keep size?
What am I doing wrong?
Also you know how to put an image as the background of a row?
Thank you