I am pretty new to Android. I am working on an Activity where the user can press a button then a Color Picker Dialog which I have already implemented pops up. The user can choose between an array-list of different colors. Problem: I want that the color the user choosed will be applied on the ActionBar Top-Menu. Is there any possibility because I' ve only found solutions where the developer has to change the color "manually" in the code. I think I have to use the method public void onColorSelected(int color) which was implemented with the ColorPickerDialog but I don't have an idea how to link the ActionBar.
Thanks.