Android Question ListView

sasidhar

Active Member
Licensed User
Longtime User
Hi all,

I am facing issue with listview. text color not getting changed, by default White for first line and grey for second line i am getting. pasting code here. please let me know anything wrong here

ListView1.TwoLinesLayout.ItemHeight=50dip
ListView1.TwoLinesLayout.Label.TextSize=25
ListView1.TwoLinesLayout.Label.TextColor=Colors.Red
ListView1.TwoLinesLayout.Label.Gravity=Gravity.LEFT

ListView1.TwoLinesLayout.SecondLabel.Height=15dip
ListView1.TwoLinesLayout.SecondLabel.Color=Colors.Blue
ListView1.TwoLinesLayout.SecondLabel.Gravity=Gravity.LEFT
ListView1.FastScrollEnabled = True
ListView1.ScrollingBackgroundColor = Colors.Transparent

For i = 0 To 100
ListView1.AddTwoLinesAndBitmap("Items","Price#",LoadBitmap(File.DirAssets,"veg.jpg"))
Next

thanks
sasidhar.M
 

DonManfred

Expert
Licensed User
Longtime User
you are changing the layout for twolines but you should change the layout for twolinesandbitmap to get this working
 
Upvote 0

sasidhar

Active Member
Licensed User
Longtime User
dear,

I could not understand what exactly is wrong in the code. can u please detail.
thanks
sasidhar
 
Upvote 0
Top