android - How to show a list of color's to chose from -


this question has answer here:

how show list of color's chose . have list view colored text [user has option choose color want .]

string available_colors[]={"#ff0000","#00ff00","#0000ff"}; string  color_options[]={"red","green","blue"};  sharedpreferences preferences = preferencemanager.getdefaultsharedpreferences(getbasecontext());         sharedpreferences.editor editor = preferences.edit();         editor.putint("selected_color",position);     sharedpreferences preferences = preferencemanager.getdefaultsharedpreferences(getbasecontext());         selected_color= preferences.getint("selected_color", 0);         msg.settextcolor(color.parsecolor(available_colors[selected_color])); 

how can make more ittutive color picker color choser ??

check wheel color picker in apidemo example. sample app provided sdk. run , check out


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -