OSDN Git Service

Scaling (Animated)VectorDrawable inside ImageView
authorztenghui <ztenghui@google.com>
Wed, 14 Jan 2015 00:21:11 +0000 (16:21 -0800)
committerztenghui <ztenghui@google.com>
Fri, 17 Jul 2015 18:16:41 +0000 (11:16 -0700)
commit35289f12d6cb0f0db67489876c805ad4a3cbd5f6
tree4f8c82b14b54af261462ca8e7ed79dbc2b8417aa
parentd4b566bf56333de708908ce4accb5fb067be64f0
Scaling (Animated)VectorDrawable inside ImageView

Before, the VectorDrawable is behaving like BitmapDrawable inside a ImageView,
and it can be blurry due to scaling.
Now apply the scaling information to the cached bitmap, then the size of bitmap
will match the ImageView's screen size. Therefore, no blurry any more.

b/18185626

Change-Id: I979cef3b5178a9bd37ee6cc776df3361ca47c803
graphics/java/android/graphics/drawable/VectorDrawable.java
tests/VectorDrawableTest/src/com/android/test/dynamic/ScaleDrawableTests.java