Why are you doing this?  Just set the drawable to use for the button's
background...

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Mon, Jul 23, 2012 at 12:02 PM, bob <b...@coolfone.comze.com> wrote:

> So, I'm making my own button class to have better-looking buttons.
>
> I subclassed Button, and put this in:
>
> @Override
>  protected void onDraw(Canvas canvas) {
> String s = (String) this.getText();
> int w = this.getWidth();
>  int h = this.getHeight();
> Button_Painter.paint_button(s, canvas, w, h);
> }
>
>
> The issue is that this grey rectangle still gets drawn like so:
>
> http://postimage.org/image/rhs1omfql/
>
> In other words, part of the old drawing is still going on.  I'm not
> calling the superclass's onDraw…
>
>
> Any ideas?
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Reply via email to