In Android, how can i allow the user to choose a color between 4 ?

Posted by Marco Siino on Stack Overflow See other posts from Stack Overflow or by Marco Siino
Published on 2010-04-18T20:10:00Z Indexed on 2010/04/18 20:13 UTC
Read the original article Hit count: 393

Filed under:
|
|
|

I'm making an Android App, and i need to put a control that let user choose between 4 different colors. I want to do this with something like radio buttons: the problem is that radiobuttons are round...

is there a way to set them looks like square/rect buttons, and assign a color to their inside rect area ?

If not, how can i achieve that choose for the user ?

I need this because i'm making a Todo/Task android application, and i need the user to choose the priority of a task, between for priority level that are rapresented with a color. So i think to do that by showing 4 buttons, each with a different color associated, and a text inside ("0", "1", "2", "3")

Thanks!

© Stack Overflow or respective owner

Related posts about android

Related posts about widgets