dim foutView as listView
foutView.TwoLinesLayout.SecondLabel.Height=100dip
foutView.TwoLinesLayout.SecondLabel.TextSize=20
foutView.TwoLinesLayout.SecondLabel.Typeface=Typeface.DEFAULT_BOLD
foutView.TwoLinesLayout.SecondLabel.color=Colors.Blue
foutView.TwoLinesLayout.SecondLabel.TextColor=Colors.Blue
Dim YearLabel as Label
YearLabel = ListView1.TwoLinesLayout.SecondLabel
YearLabel.TextColor = Colors.Yellow
YearLabel.TextSize = 20
YearLabel.Gravity = Gravity.CENTER
' start color
foutView.TwoLinesLayout.Label.TextColor=Colors.blue
' next color
foutView.Initialize("")
foutView.TwoLinesLayout.Label.TextColor=Colors.red
foutView.Initialize("")
label1=foutView.TwoLinesLayout.Label
'Label1.Height=20dip
Label1.TextSize=20
Label1.Typeface=Typeface.DEFAULT_BOLD
Label1.textColor=Colors.white
label2=foutView.TwoLinesLayout.secondLabel
'Label2.Height=20dip
Label2.TextSize=20
Label2.Typeface=Typeface.DEFAULT_BOLD
Label2.textColor=Colors.red
label1.Invalidate
label2.Invalidate
It is not possible to change the layouts of items after adding the items. Also note that the layout affects all items of the same type, not a single item.
The ListView is optimized for very large lists. If you want more control you can use a ScrollView instead.
This is true only for items within the same ListView. One ListView should not affect the other.Is this what you meant by layout affects of the same type?
ListViewC.SingleLineLayout.Label.TextColor = Colors.RGB (255,0,0)
ListViewC.AddSingleLine ("item")
ListViewC.SingleLineLayout.Label.TextColor = Colors.RGB (0,255,0)
ListViewC.AddSingleLine ("item"))
ListViewC.SingleLineLayout.Label.TextColor = Colors.RGB (0,0,255)
ListViewC.AddSingleLine ("item")
ListViewC.Invalidate
I think that ScrollViews can be useful for even longer lists. Maybe up to 500 - 1000 items.ScrollViews don't have it, but even with about 100 items they remain usable.
I think that ScrollViews can be useful for even longer lists. Maybe up to 500 - 1000 items.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?