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

haskell - Using filter on an item in a list? -

c# - When does PreApplicationStartMethod actually get triggered to run? -

tomcat6 - Exception when stopping container for a with Spring + Quartz + Tomcat web application -