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"))
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
--------- beginning of main
LoadAppImageStartupCache enabled : 1
Not starting debugger since process cannot load the jdwp agent.
Fail to acquire dataAnalyzerService...
AtomicFileUtils: readFileLines file not exist: android.util.AtomicFile@d10a200
endActivityTransaction: margin state not match
endActivityTransaction: margin state not match
LoadAppImageStartupCache enabled : 1
Not starting debugger since process cannot load the jdwp agent.
Fail to acquire dataAnalyzerService...
AtomicFileUtils: readFileLines file not exist: android.util.AtomicFile@594eb32
The code you have in post #1 is correct using either one of of the 2 lines: xui.LoadBitmapResize or xui.LoadBitmap.
If you want the forum members to test your project, export it to the forum, or wait until Erel looks at your error.
You may also use the forum search for: Not starting debugger since process cannot load the jdwp agent
I think there are some answers, but not sure if they address your issue.
The code you have in post #1 is correct using either one of of the 2 lines: xui.LoadBitmapResize or xui.LoadBitmap.
If you want the forum members to test your project, export it to the forum, or wait until Erel looks at your error.
You may also use the forum search for: Not starting debugger since process cannot load the jdwp agent
I think there are some answers, but not sure if they address your issue.