要移动视图,请使用Matrix.这非常方便.
Matrix matrix = new Matrix(); matrix.reset(); matrix.postTranslate(x,y); imageview.setScaleType(ScaleType.MATRIX); imageview.setImageMatrix(matrix);