Android Question Set divider color in customlistview

MroBurk

Member
Licensed User
Hi, I need help to set The Divider in Customlistview. If I select in a design view any colors and set the Height to "1", all customlistview is colored the same color I selected for the divider. Please help!!
 

Lucas Siqueira

Active Member
Licensed User
Longtime User

there are some peculiarities in the custom list view.

when you set a color for the spacing between clv items.

this color ends up being the item's background when it has not been defined in the item's layout. one solution is to put a panel at the bottom of the item, that way you can put the color you like on the item and a totally different color in the spacing of your clv items.

in case you want the thread color to be different for each item. the suggestion is, put a panel on the item, which will serve as spacing, and set the spacing of your clv equal to zero,
so there will be no spacing color, but the panel you placed on the item will be your division from one item to another on the clv...

 

Attachments

  • colorcustomlistview.zip
    23.1 KB · Views: 110
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…