locked
How are colors for ListView ContextActions specified on Android? RRS feed

  • Question

  • User89714 posted

    How are colors for ListView ContextActions specified on Android? Mine seem to have the same text and background colors at the moment, as they are not visible until pressed.

    I've been doing a lot of re-factoring, so might have broken something. I'm assuming that if it was a XF bug, other people would have mentioned it already.

    Monday, December 30, 2019 12:42 PM

Answers

  • User379860 posted

    Do you want to change the color like following screenshot?

    If so, you just add actionModeBackground in your styles.xml <item name="actionModeBackground">@color/RedColor</item>

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Monday, December 30, 2019 2:55 PM

All replies

  • User379860 posted

    Do you want to change the color like following screenshot?

    If so, you just add actionModeBackground in your styles.xml <item name="actionModeBackground">@color/RedColor</item>

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Monday, December 30, 2019 2:55 PM
  • User89714 posted

    Thank you @LeonLu - I must have deleted that line during re-factoring. Works as expected now.

    Monday, December 30, 2019 4:07 PM