Listview Single Line with Bitmap?

Scantech

Well-Known Member
Licensed User
Longtime User
It is possible to have Listview Single Line with Bitmap? I saw it in my Android Settings. Thank you
 

disit11

Member
Im not 100% sure but I know you can do it with two lines and a bitmap and maybe just leave the second area blank? Here is the code to do so. Just leave text#2 blank and see how it looks.

B4X:
ListView1.AddTwoLinesAndBitmap("Text#1", "Text#2", LoadBitmap(File.DirAssets, "Your Image File With Extension"))
 
Upvote 0

derez

Expert
Licensed User
Longtime User
This is true, and you can also set the height of the firsl line label to be full line height (otherwise it is set for half the height).
listview1.TwoLinesAndBitmap.Label.height = ...
 
Last edited:
Upvote 0
Top