I am making a custom list view item. Extending View and overriding the onDraw method.
private Bitmap bmpScaledBackground; //with size:(screenWidth , screenHeight/4)
@Override
public void onDraw(Canvas canvas){
canvas.drawBitmap(bmpScaledBackground , 0 , 0 , null);
//...more of that
}
So far it works quite well on normal phones such as Galaxy SII.
However when it comes to Galaxy Nexus, the performance is poor. I believe it is because of the large resolution of GN (1280x720).
In the above case, the background bitmap (bmpScaledBackground) alone is as large as 720x320 which takes a long time to draw. Not to mention the risk of OOM.
I am writing to ask if there is a more scalable way (except SurfaceView and OpenGL) to make a custom view.
Sorry for my poor english.