When using shallow view, images are not visible, but they are drawn to view in android

I am drawing some bitmaps to canvas in which my class is view-enhanced, then everything works fine, but I found it lacks efficiency. So I looked for other alternatives and found that we needed to extend the class to a surface to be more efficient. Therefore, I am currently drawing bitmaps using a surface view. But here is the problem when I change and run the program I cannot see bitmaps but onDraw () is called and user touches are handled by my view. I did some searches on this but couldn't find anything. Can you please let me know, although the images are being drawn on the preview, why the images are not displayed ???

thank

+3
android surfaceview


source to share


No one has answered this question yet

Check out similar questions:

4
Drawing scaled bitmaps on SurfaceView - no anti-aliasing
2
Camera preview with SurfaceView filter
2
Which to use for drawing in Android - View or SurfaceView?
1
Thread or Runnable when using Canvas and SurfaceView in Android
0
Draw SurfaceView outside onDraw () Event
0
Drawing app with SurfaceView
0
Draw a transparent image on the surface
0
canvas doesn't draw images in any other way
0
Android canvas improves drawing performance
0
Android: Background on SurfaceView?



All Articles
Loading...
X
Show
Funny
Dev
Pics