I use this line:

mIcon = BitmapFactory.decodeResource(context.getResources(),
R.drawable.icon);

after which mIcon is not null, but its width and height are both -1
and nothing is drawn.  Is there something obvious that I'm missing?

Here's my call to draw it:

canvas.drawBitmap(mIcon, null, new Rect(loc.x-16, loc.y+16, loc.x+16,
loc.y-16), mPaint);

--~--~---------~--~----~------------~-------~--~----~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to