语言

Menu
Sites
Language
Not work SetBackgroundColor in CustomItem

HI all,

Why does not SetBackgroundColor in CustomItem? The background bitmap IS NOT set! Section style IS NOT GroupedListView! 

How to remove blue highlighted in selected CustomItem?

响应

2 回复
Denis Kepeschuk

Hi, Sergei!

This code really works with custom items of ListView & GroupedListView. Add it to your CreateItem() implementation: 

pItem->SetBackgroundColor(LIST_ITEM_DRAWING_STATUS_NORMAL, normalColor);  // For normal items

pItem->SetBackgroundColor(LIST_ITEM_DRAWING_STATUS_PRESSED, pressedColor); // For pressed item

Sergei Melikhov

Hi Denis Kepeschuk

Thank you, I do not put the value in status.