I am having some colors from server which should apply dynamically to the option menu item background. I need not to change the action bar color. Only the menu list background color. I can see several answers. But none of them are not programmatically/dynamically.
I tried https://stackoverflow.com/a/5647743/7444772 and I have got an exception (A factory has already been set on this LayoutInflater). Other examples are static methods