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

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -