0

I have a BottomBar in my app. I want to change the color of the selector of its items. That's when it was clicked on the item to change its color! By default, colorPrimary has been set to this by default. What should I do to change its color?

Phantômaxx
  • 37,901
  • 21
  • 84
  • 115
programdan
  • 23
  • 6

1 Answers1

0

I think that this can help you to change the color

// Pass on the activity and color resourse
    Utils.darkenStatusBar(this, R.color.orange);

I don't test the code, but maybe if you put this inside of clic you can change it

Reference

joe06
  • 418
  • 4
  • 17
  • Sorry, I forgot to put the reference, Untils it's a class, you can check it here, http://www.gadgetsaint.com/tips/change-statusbar-color-android/#.Wos5nqinFhE – joe06 Feb 20 '18 at 13:12