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

Winapi c++: DialogBox hangs when breaking a loop -

vb.net - Font adding using PDFsharp -

javascript - jQuery iScroll clickable list elements while retaining scroll? -