Example usage for android.widget ImageView getMatrix

List of usage examples for android.widget ImageView getMatrix

Introduction

In this page you can find the example usage for android.widget ImageView getMatrix.

Prototype

public Matrix getMatrix() 

Source Link

Document

The transform matrix of this view, which is calculated based on the current rotation, scale, and pivot properties.

Usage

From source file:android.support.v17.leanback.widget.DetailsOverviewSharedElementHelper.java

private void saveImageViewScale() {
    if (mSavedScaleType == null) {
        // only save first time after initialize/restoreImageViewScale()
        ImageView imageView = mViewHolder.mImageView;
        mSavedScaleType = imageView.getScaleType();
        mSavedMatrix = mSavedScaleType == ScaleType.MATRIX ? imageView.getMatrix() : null;
        if (DEBUG) {
            Log.d(TAG, "saveImageViewScale: " + mSavedScaleType);
        }/*from   w ww.  j ava  2 s .c o m*/
    }
}