Hi,

My goal is to create a custom Color picker. I know there is a
colorpicker in the API demo provided by google. I just didn't like the
fact that they extended Dialog. I want my color picker to be inside my
View right next to buttons, text etc. For this reason I created a
custom view and I was also able to create a button. What I did so far
was to override the onDraw method and draw circles etc. Basically I
had all the functions I needed. I even created a custom animation by
changing the alpha values in a loop... And I think that really is a
bad idea :)
So my question is how to create this properly? I want to be able to
push a circle, which is the color of the last choice, and then have a
circle pop up around it where you can chose between a couple of other
colors. At best with nice animations etc. My first idea was to create
two inner classes which also extend view for the inner circle and the
outer circle and have them managed by the class where they reside in.
On second thought I was thinking about extending ViewGroup but that is
more for layouts, right? I am a bit confused which way I should choose
to implement something like this and was hoping to get to know the
"right" way.

Thanks a lot in advance!

images of how it is supposed to look like:
http://cid-d439d00e2ee0869f.photos.live.com/self.aspx/ColorPicker/Kreis^_mit^_Rand.png

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to