Makesure ImageView's layout_height and layout_width is set to fill_parent. Then do:
To move a view, use Matrix. It is very handy.
Matrix matrix = new Matrix();
matrix.reset();
matrix.postTranslate(x, y);
imageview.setScaleType(ScaleType.MATRIX);
imageview.setImageMatrix(matrix);
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…