Hi,
I would like to put an image in a cell of the header of a B4XTable table, do you have an example of code?
Thanks
I tried this code but it crashes
If i use this code, it's OK : iv.SetBitmap(xui.LoadBitmap(File.DirAssets, "jaune.png"))
I would like to put an image in a cell of the header of a B4XTable table, do you have an example of code?
Thanks
I tried this code but it crashes
If i use this code, it's OK : iv.SetBitmap(xui.LoadBitmap(File.DirAssets, "jaune.png"))
B4X:
Sub SetHeaderImage (Index As Int)
Dim c As B4XTableColumn = TabStat.Columns.Get(Index)
Dim p As B4XView = c.CellsLayouts.Get(0)
Dim iv As B4XView = p.GetView(0)
iv.SetBitmap(xui.LoadBitmapResize(File.DirAssets, "jaune.png", iv.Width, iv.Height, False))
End Sub
Last edited: