android - How to show a list of color's to chose from -
this question has answer here:
- android color picker [closed] 5 answers
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
Post a Comment