Text/Label properties for Listview

MDEnt

Member
Licensed User
Longtime User
Is there a way to change the text properties (color, size, etc.) for the labels (the 2 lines of text) on a ListView1.AddTwoLinesAndBitmap2. I tried a few ways that it is done for singleline, etc. but I am having no luck.
 
Last edited:

NJDude

Expert
Licensed User
Longtime User
Something like this:

B4X:
    myListView.TwoLinesAndBitmap.Label.Gravity = Gravity.TOP
    myListView.TwoLinesAndBitmap.Label.TextSize = 14
    myListView.TwoLinesAndBitmap.Label.TextColor = Colors.Yellow
    myListView.TwoLinesAndBitmap.Label.Width = 270dip
    myListView.TwoLinesAndBitmap.Label.Height = 140dip
    myListView.TwoLinesAndBitmap.Label.Left = 40dip

    myListView.AddTwoLinesAndBitmap2("Title", "Description", LoadBitmap(File.DirAssets, "SomeIcon.png"), Link)
 
Upvote 0

MDEnt

Member
Licensed User
Longtime User
Thanks for the quick reply. I tried this and similar and for some reason i get a few different errors such as unknown member, etc. I have the listview working fine with TwoLinesAndBitmap2 but want to change the properties for the two lines of text.
 
Last edited:
Upvote 0
Top