Android Question header of a B4XTable table : put image / LoadBitmapResize

voxel

Member
Licensed User
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
 
Last edited:

voxel

Member
Licensed User
I have a problem with log :

--------- 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
 
Upvote 0

Mahares

Expert
Licensed User
Longtime User
I have a problem with log :
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.
 
Upvote 0

voxel

Member
Licensed User
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.
Thank you, I will try to find the problem of log in a 1st time
 
Upvote 0
Top