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?
Asked
Active
Viewed 43 times
0
-
Which BottomBar ? Do you mean BottomNavigationBar ? – TREAF ALSHEMERI Feb 19 '18 at 21:19
-
Not Bottom Navigation ! I used the Bottom Navigation, but I could not work with it and move the fragments I mean the Bottom Bar – programdan Feb 19 '18 at 21:24
1 Answers
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

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