android studio center image in canvas code example
Example: android studio how to move a picture canvas
protected void onDraw(Canvas canvas) {
super.onDraw(canvas);
Bitmap myBitmap = BitmapFactory.decodeResource(getResources(), R.drawable.pic1);
canvas.drawBitmap(myBitmap, 0, 0, null);
}