xfgloss icon indicating copy to clipboard operation
xfgloss copied to clipboard

ListView ContextMenu Active ViewCell Color

Open ChaseFlorell opened this issue 7 years ago • 1 comments

This is mainly for Android, but can probably be translated to other platforms as well.

If I add xfGloss:CellGloss.BackgroundColor="White" to a ViewCell, I get the benefit of having a different color background from the parent ListView, however I lose the selected color when I long-press the view cell in order to bring up the Android ContextMenu.

Is there any way to set the background color AND have a separate color when the context menu is active?

I can see this being useful on iOS too, however it's more likely that the background will stay the same color when the view cell is swiped to reveal the context menu.

Proposed API

xfGloss:CellGloss.ContextMenuActiveBackgroundColor="#xxx"

And this color would be set for the active view cell when the Context Menu is open.

note: I'm not actually sure what the name should be, color states on Android are a pita

ChaseFlorell avatar Apr 13 '17 22:04 ChaseFlorell

Hey @ChaseFlorell, sorry it has taken so long to reply. I will look into getting this done.

tbaggett avatar Aug 02 '17 13:08 tbaggett