Different color for each menu item - android

I want to create a bottom navigation bar with different color for different menu items. Something similar to "https://github.com/gauravk95/bubble-navigation".
All I could do till now is just change the on selected and on unselected colors for the navbar. Is there any way I can change these colors for each menu item?

Related

Change color arrow Menu Group Android

Does anyone know how I can change the color of the menu grouping arrow?

Navigation drawer set menu item icon color

How can I change just one of menu item icon color in Android's navigation drawer? I don't want to change the entire drawers icon but just one icon.
I tried setting the android:iconTint property but that does not work.

Change the selected item highlight colour for the hard-menu-key menu

I've used the action bar style generator to generate a custom action bar theme for an app, and it works well after a few tweaks. My custom theme is based on Holo (the dark version) and changes the highlight colours. My action bar overflow menu correctly shows my custom state_pressed colour on the overflow items when I press them. I've set android:colorPressedHighlight to the colour I want, and put an appropriate drawable for android:selectableItemBackground.
The problem is on one of my test devices, which has a hard menu button. (It's a Samsung Galaxy S III.) When I show the overflow menu with the hard menu button, pressing an item from this menu gives it the default blue highlight. Either it uses another attr instead of android:selectableItemBackground, or it's taking it from another style. I'd like to know what attr it's using, or what style it's taking it from, so that I can set this colour.
P.S. Before anyone suggests it, I know that you can use android:panelBackground to set the background of the bottom menu. But I don't want to change the overall menu background, only the item background.

how to change text color of options menu and drop down navigation of Theme.Sherlock.Light.DarkActionBar?

I'm using ActionBarSherlock with a theme whos parent is Theme.Sherlock.Light.DarkActionBar (generated with http://jgilfelt.github.com/android-actionbarstylegenerator ).
the problem is that the text for dropdown navigation list items, dropdown navigation title in actionbar and options menu list items (on devices with menu key) is dark instead of white. I checked it on both 4.2 device and 2.3 emulator.
something weird is that tabs navigation that automatically changes to dropdown menu in landscape mode has the correct text color both in title and list item, but a simple dropdown navigation doesn't..
I tried overriding some colors in the actionbar style but it didn't change anything.
how do I fix this ?
btw - if I change the theme's parent to Theme.Sherlock, those colors are correct, but then the activity background is dark..

Android: Change background color of drop-down navigation in action bar

I am using a drop-down navigation list in action bar. I want to change the background color of the selected item in the drop-down navigation list. How can we change this through java code?

Categories

Resources