android studio how to move a picture canvas

Solutions on MaxInterview for android studio how to move a picture canvas by the best coders in the world

showing results for - "android studio how to move a picture canvas"
Johanna
13 May 2018
1protected void onDraw(Canvas canvas) {
2
3            super.onDraw(canvas);
4
5            Bitmap myBitmap = BitmapFactory.decodeResource(getResources(), R.drawable.pic1);
6
7            canvas.drawBitmap(myBitmap, 0, 0, null);
8
9        }