I want to display continuous bitmaps efficiently. First I tried with SurfaceView with code like the following:
Canvas canvas = holder.lockCanvas();
canvas.drawBitmap(bmpNow, 0, 0, paint);
holder.unlockCanvasAndPost(canvas);
However, the performance is bad and can not meet my needs. Then I tried it another way. I directly use ImageView and imageView.setImageBitmap(bitmap), and this way performance was better than in the former case, but even so, it still can not meet my needs.
EDIT: continuous bitmaps are frames captured by a camera. They will display frame by frame with a UI widget like ImageView. I want this UI widget to display the frames fast and fluently, for example: display more than 15 or 20 frames per second. The problem is, I do not know which UI widget to choose, and how to use it efficiently.
For fast frame-by-frame animation, you should consider using OpenGL. I suggest using either libgdx or andengine libraries.
Using the normal API will be easier, but there will be a lot of performance and memory issues that you will need to handle.