Android : customize Actionbar sherlock color with user input

on Saturday, April 18, 2015


What i want? I want to make the ActionBar color customizable, users can select a color from a list of colors and the ActionBar color will be changed to their selected color.


What i have done? I have a class named SettingsActivity in which i take color choice from user. The color they select is stored in SharedPreferences. The color user selected is getting stored in SharedPreferences and then i restart the application through an intent the color change take place. Everything is working as it should.


But there is a problem whenever i start the application for a small interval of time the app shows the default color that i have at styles.xml in values v-14 folder and then the color changes to user selected color. How can i eliminate this bug?


0 comments:

Post a Comment