Hi all,

I want to draw a text on top of a bitmap.

So in my onDraw function, i do the following:

canvas.drawBitmap(myBitmap, 30, 30, mPaint);
textPaint.setTextSize(20);
canvas.drawText("Life X 3", 30, 30, textPaint);

However, it ended up that the text is above the bitmap. (the X position is
correct, but the y position is not).

Can anyone help me with this?

Thanks in advance,
Stanley

-- 
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

To unsubscribe, reply using "remove me" as the subject.

Reply via email to