Home | History | Annotate | Download | only in widget

Lines Matching refs:MATRIX

26 import android.graphics.Matrix;
62 private Matrix mMatrix;
81 private Matrix mDrawMatrix = null;
93 ScaleType.MATRIX,
160 //need inflate syntax/reader for matrix
164 mMatrix = new Matrix();
415 * Scale using the image matrix when drawing. The image matrix can be set using
416 * {@link ImageView#setImageMatrix(Matrix)}. From XML, use this syntax:
417 * <code>android:scaleType="matrix"</code>.
419 MATRIX (0),
421 * Scale the image using {@link Matrix.ScaleToFit#FILL}.
426 * Scale the image using {@link Matrix.ScaleToFit#START}.
431 * Scale the image using {@link Matrix.ScaleToFit#CENTER}.
437 * Scale the image using {@link Matrix.ScaleToFit#END}.
503 /** Return the view's optional matrix. This is applied to the
504 view's drawable when it is drawn. If there is not matrix,
506 Do not change this matrix in place. If you want a different matrix
509 public Matrix getImageMatrix() {
513 public void setImageMatrix(Matrix matrix) {
515 if (matrix != null && matrix.isIdentity()) {
516 matrix = null;
519 // don't invalidate unless we're actually changing our matrix
520 if (matrix == null && !mMatrix.isIdentity() ||
521 matrix != null && !mMatrix.equals(matrix)) {
522 mMatrix.set(matrix);
633 private static final Matrix.ScaleToFit[] sS2FArray = {
634 Matrix.ScaleToFit.FILL,
635 Matrix.ScaleToFit.START,
636 Matrix.ScaleToFit.CENTER,
637 Matrix.ScaleToFit.END
640 private static Matrix.ScaleToFit scaleTypeToScaleToFit(ScaleType st) {
641 // ScaleToFit enum to their corresponding Matrix.ScaleToFit values
810 if (ScaleType.MATRIX == mScaleType) {
811 // Use the specified matrix as-is.