ListView Labels Colors

surfer

Member
Licensed User
Longtime User
I play with ListView: on one of the two tabs of TabHost I put ListView (using designer). And I saw that, when I add to the Listview two lines and image, the color properties of Listview labels:

TwoLinesLayout.Label.TextColor, TwoLinesLayout.Label.Color, TwoLinesLayout.Secondlabel.TextColor, TwoLinesLayout.Secondlabel.Color

do not change the labels colors. Without image it all works fine. Do I miss something?:sign0085:
 

surfer

Member
Licensed User
Longtime User
Can you post your project as a zip file (IDE menu Files /Export As Zip) to see where and what the problem might be.

Best regards.

Klaus,

I attach my project.

Thank you
 

Attachments

  • tryListview.zip
    19 KB · Views: 240
Upvote 0

surfer

Member
Licensed User
Longtime User
I post also version of project without TabHost. Still I cannot change the labels color.

Thank you
 

Attachments

  • tryListview_withot_tabhost.zip
    18.8 KB · Views: 250
Upvote 0

klaus

Expert
Licensed User
Longtime User
As Erel already wrote you need to use ListView1.TwoLinesAndBitmap.Label.TextSize = 10.
There are three possible layouts for ListViews.
- SingleLineLayout
- TwoLinesLayout
- TwoLinesAndBitmap
You are using all three, so you need to define the layout parameters for each one which can be different.

Attached your project modified.

Best regards,
 

Attachments

  • tryListview_1.zip
    19.3 KB · Views: 251
Upvote 0
Top