android - Custom class ImageView written text ends up behind setImageBitmap -


hi
custom imageview setting bitmap this, in constructor.

setimagebitmap(btm);  

in ondraw method im writing text like

canvas.drawtext 

text showed , can move text around using ontouchevent.

but text behind bitmap.

i thought setimagebitmap(btm) part of canvas??
ide!

when draw bitmap in ondraw this, screen black!!

canvas.drawbitmap(bitmap, 0,0, null); 

if want imageview displays text , you're handling ondraw, why not draw bitmap manually canvas in ondraw? way have control on order of drawing. draw image canvas first , text, , text no longer obscured image.


Comments

Popular posts from this blog

Cursor error with postgresql, pgpool and php -

delphi - ESC/P programming! -

c++ - error: use of deleted function -