announce: Color Picker Dialog

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

announce: Color Picker Dialog

Postby pskink » Sun Jan 31, 2010 3:06 pm

hi,

for a project i'm working on i created small (~230 lines of java code) color picker dialog.

if you are newbie to Drawables you will learn (i hope so) how to create custom (and animated!!!) Drawables and how to use LayerDrawable

any comments, as always, welcome

pskink
Attachments
ColorDialog.tar.gz
deprecated, download newest version attached in next posts
(7.76 KiB) Downloaded 895 times
device.png
device.png (11.64 KiB) Viewed 12193 times
Last edited by pskink on Wed Feb 03, 2010 9:30 am, edited 1 time in total.
pskink
pskink
Master Developer
Master Developer
 
Posts: 719
Joined: Mon Nov 24, 2008 3:49 pm

Top

Postby pskink » Mon Feb 01, 2010 8:14 am

hi,

i was thinking about adding alpha channel selector, but have no idea how to display result color...

any ideas?

pskink
pskink
pskink
Master Developer
Master Developer
 
Posts: 719
Joined: Mon Nov 24, 2008 3:49 pm

Postby BUKsAPPs » Mon Feb 01, 2010 1:39 pm

Your dialog looks great. One idea for showing the alpha is to cut your color output display in half. On the top half show a fully opaque output of the color like you are currently doing, but on the bottom half draw the color with alpha over a colorful logo or perhaps country flag, so that users can see the effect of the alpha.
BUKsAPPs
Claustrum Lite - Area capture game
R:P:S Academy - play Rock/Paper/Scissors online
BUKsAPPs
Experienced Developer
Experienced Developer
 
Posts: 71
Joined: Sat Jan 16, 2010 9:01 pm
Location: USA

Postby pskink » Mon Feb 01, 2010 2:05 pm

BUKsAPPs wrote:Your dialog looks great. One idea for showing the alpha is to cut your color output display in half. On the top half show a fully opaque output of the color like you are currently doing, but on the bottom half draw the color with alpha over a colorful logo or perhaps country flag, so that users can see the effect of the alpha.


good idea, i'll try to make it customizable in dialog's ctor

stay tuned...

thanks
pskink
pskink
pskink
Master Developer
Master Developer
 
Posts: 719
Joined: Mon Nov 24, 2008 3:49 pm

Postby pskink » Tue Feb 02, 2010 10:25 pm

BUKsAPPs wrote:One idea for showing the alpha is to cut your color output display in half. On the top half show a fully opaque output of the color like you are currently doing, but on the bottom half draw the color with alpha over a colorful logo or perhaps country flag, so that users can see the effect of the alpha.


ok, done that.

now one can select color with/without alpha channel

in attached archive i left .apk in bin folder so you can run it without eclipse build

thanks
pskink
Attachments
ColorDialog.tar.gz
deprecated, see for newer release in the next posts
(23.98 KiB) Downloaded 562 times
1131843320.png
1131843320.png (19.84 KiB) Viewed 12135 times
1131778136.png
1131778136.png (15.25 KiB) Viewed 12135 times
Last edited by pskink on Fri Feb 26, 2010 1:13 pm, edited 1 time in total.
pskink
pskink
Master Developer
Master Developer
 
Posts: 719
Joined: Mon Nov 24, 2008 3:49 pm

Postby xma » Wed Feb 03, 2010 12:08 am

That's great !
xma
Junior Developer
Junior Developer
 
Posts: 16
Joined: Thu Sep 03, 2009 10:10 pm

Top

Postby pskink » Wed Feb 03, 2010 9:33 pm

hi,

improved animation smoothness quite much, using custom Animation class

as before, attached tar.gz contains .apk in bin folder so you can run it out-of-the-box

thanks
Attachments
ColorDialog.tar.gz
(24.99 KiB) Downloaded 749 times
pskink
pskink
Master Developer
Master Developer
 
Posts: 719
Joined: Mon Nov 24, 2008 3:49 pm

Postby pskink » Thu Feb 04, 2010 1:00 pm

hi,

as i don't have access to real device, could anyone test it on their phone?

please get .apk from my recent submission post i.e.:

http://www.anddev.org/download.php?id=1767

thanks
pskink
pskink
Master Developer
Master Developer
 
Posts: 719
Joined: Mon Nov 24, 2008 3:49 pm

Postby StandardBlueCaboose » Fri Feb 19, 2010 4:01 am

So, I guess nobody has tested this for you?

I have, and it works fine. Although I'm not sure of your icon choices for the alpha channel test. I'm pretty sure the standard for adjusting transparency is to have half of the picture display that checkered pattern everybody uses.

Sort of like what's seen in this link. I think if you filled the entire bottom box with that graphic it would be perfect.

http://lukast.mediablog.sk/i/colorchoos ... hooser.png

Anyway, as it is... Would it be all right if I used it in my application?
StandardBlueCaboose
Once Poster
Once Poster
 
Posts: 1
Joined: Wed Feb 10, 2010 10:29 pm

Postby pskink » Fri Feb 19, 2010 11:57 am

StandardBlueCaboose wrote:So, I guess nobody has tested this for you?

I have, and it works fine. Although I'm not sure of your icon choices for the alpha channel test. I'm pretty sure the standard for adjusting transparency is to have half of the picture display that checkered pattern everybody uses.

Sort of like what's seen in this link. I think if you filled the entire bottom box with that graphic it would be perfect.

http://lukast.mediablog.sk/i/colorchoos ... hooser.png

Anyway, as it is... Would it be all right if I used it in my application?


thanks for trying it on real device
about the icon for alpha channel: its configurable from Dialog's constructor so you can put any icon you want

and yes, you can do everything you want with that code :)
pskink
pskink
Master Developer
Master Developer
 
Posts: 719
Joined: Mon Nov 24, 2008 3:49 pm

Re: announce: Color Picker Dialog

Postby abdhjops » Mon Apr 26, 2010 6:33 am

very cool!
abdhjops
Once Poster
Once Poster
 
Posts: 1
Joined: Mon Apr 26, 2010 3:29 am

Re: announce: Color Picker Dialog

Postby tlikyu » Mon Aug 02, 2010 10:02 am

Awesome dude.... what im looking for... thx alot.
Helmi Hasan Baraja
Software Engineer / Programmer

Terato Tech Sdn Bhd (833194 - D)
MSC Status Company
iPhone.Android.Web Specialist

http://www.teratotech.com/
tlikyu
Freshman
Freshman
 
Posts: 5
Joined: Thu May 13, 2010 8:32 am
Location: malaysia

Re: announce: Color Picker Dialog

Postby asolanki » Mon Aug 02, 2010 11:41 am

Hi!!

its great..
Thanks a lot for sharing all your work..
asolanki
Senior Developer
Senior Developer
 
Posts: 151
Joined: Thu Jan 08, 2009 7:32 am

Re: announce: Color Picker Dialog

Postby kostmo » Tue Aug 24, 2010 3:08 am

There is also a standalone color picker as part of the OpenIntents project: http://stackoverflow.com/questions/1542 ... 84#2727284
kostmo
Freshman
Freshman
 
Posts: 5
Joined: Thu Sep 24, 2009 4:23 am

Re: announce: Color Picker Dialog

Postby carla23 » Wed Aug 10, 2011 12:24 pm

Done! Thanks for letting me know about other good stuff ! :D
Last edited by carla23 on Sat May 25, 2013 9:12 am, edited 1 time in total.
carla23
Once Poster
Once Poster
 
Posts: 1
Joined: Wed Aug 10, 2011 12:22 pm

Top
Next

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 6 guests