tags:

views:

34

answers:

0

I have to create custom button that contains few elements.

alt text

Elements have different sizes (Big A, two smaller labels and color indicator). Behavior of button is just the same like a standard button. It can't be just a picture backgraund. Is there any other way to do this?

http://developer.android.com/guide/topics/ui/custom-components.html

At this link, it's described how to create custom components but there isn't any information on how onDraw() method looks like and how to implement it. Any idea how should I implement it to draw button on the picture above?

Is "compound component" good solution for this kind of problem?