I would extend Button, then in the constructor do setBackgroundDrawable
(null); then override onDraw and do your custom drawing there. If you
want to draw once, create and draw a Bitmap and store it in a local
variable for reuse.

On Apr 30, 1:15 pm, guruk <[email protected]> wrote:
> hi,
> i know i can set a drawable as background to a button.
>
> but HOW can i for example:
>
> create/paint a small image in the size of a button and
> set this as the backgroundimage of that button?
>
> please help.
> just some lines how to create an image *for example just two different
> dots*
> and how to set this image as background for a button.
>
> thanks
> christian
--~--~---------~--~----~------------~-------~--~----~
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