hi,
i'm using listview with 2 lines and icon
is there a way to change font size for top line ?
thanks
i'm using listview with 2 lines and icon
is there a way to change font size for top line ?
thanks
Yes. Use csbuilder to construct the first line:is there a way to change font size for top line ?
Dim cs As CSBuilder
cs.Initialize.Size(30).Color(Colors.Red).Typeface(Typeface.CreateNew(Typeface.DEFAULT,Typeface.STYLE_ITALIC)).Append("My First Line").PopAll
MyLv.AddTwoLinesAndBitmap(cs, then 2nd line, then bitmap)
Dim Label1 As Label
Label1 = ListView1.TwoLinesLayout.SecondLabel
Label1.TextSize = 20
Label1.TextColor = Colors.Green
Label1.TypeFace=TypeFace.....
B4X:Dim Label1 As Label Label1 = ListView1.TwoLinesLayout.SecondLabel Label1.TextSize = 20 Label1.TextColor = Colors.Green Label1.TypeFace=TypeFace.....
The example is what I have attached above.thanks
saw this earlier but never got how to implement it
nothing worked
will it be possible to have a short example ?
will it be possible to have a short example ?
Dim Label1 As Label
Label1 = ListView1.TwoLinesLayout.SecondLabel
Label1.TextSize = 20
...
thanks for your sampleYes. Use csbuilder to construct the first line:
It is recommended these days to use xClv instead of ListView.B4X:Dim cs As CSBuilder cs.Initialize.Size(30).Color(Colors.Red).Typeface(Typeface.CreateNew(Typeface.DEFAULT,Typeface.STYLE_ITALIC)).Append("My First Line").PopAll MyLv.AddTwoLinesAndBitmap(cs, then 2nd line, then bitmap)
Can you correct your thread title from listvew to ListView although it is spelled correctly in the body of your post.
thanks,Zeev, you are wasting your time with ListView. There isn't a single good reason to use it.
Switch to xCustomListView.
Yes.just use initialize again ?