diff options
Diffstat (limited to 'core/java/android/widget/ImageView.java')
-rw-r--r-- | core/java/android/widget/ImageView.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/core/java/android/widget/ImageView.java b/core/java/android/widget/ImageView.java index 5d578ca..e97177d 100644 --- a/core/java/android/widget/ImageView.java +++ b/core/java/android/widget/ImageView.java @@ -1117,6 +1117,20 @@ public class ImageView extends View { } } + /** @hide */ + public void animateTransform(Matrix matrix) { + if (matrix == null) { + mDrawable.setBounds(0, 0, getWidth(), getHeight()); + } else { + mDrawable.setBounds(0, 0, mDrawableWidth, mDrawableHeight); + if (mDrawMatrix == null) { + mDrawMatrix = new Matrix(); + } + mDrawMatrix.set(matrix); + } + invalidate(); + } + @Override protected void onDraw(Canvas canvas) { super.onDraw(canvas); |