Originally Posted by RaveendraB
I'm sorry, I think I was too tired to read it clearly enough to understand it.
To my understanding the highlighted rect is a kind of skin, not pure color.
You can override the skin by the following code:
Note that the listbox item highlight skin consists of nine parts, every part is identified by an ID like the KAknsIIDQsnFrListCenter. You can find the definition of the IDs in the system header file "AknsConstants.h".
// override the center part of the skin
MAknsSkinInstance* skin = AknsUtils::SkinInstance();
CAknsItemData* item = skin->GetCachedItemData(KAknsIIDQsnFrListCenter);
item = skin->CreateUncachedItemDataL(KAknsIIDQsnFrListCenter);
CAknsItemDef* def = AknsUtils::CreateMaskedBitmapItemDefL(KAknsIIDQsnFrListCenter, KMbmFile, EMbmTdjgmcqeListboxitemhightlightcenter, EMbmTdjgmcqeListboxitemhightlightcentermask);
See the example:
The example is just a concept verfication and is given with no guarantee that it has no bugs.