diff options
| author | ztenghui <ztenghui@google.com> | 2014-06-09 13:14:19 -0700 |
|---|---|---|
| committer | ztenghui <ztenghui@google.com> | 2014-06-20 15:16:47 -0700 |
| commit | eb034fbca40006c55db143047eb628c4b657730a (patch) | |
| tree | cfb5b58e402b3187d5b37d2e2d428c2dce247cea /tests/VectorDrawableTest/res/anim | |
| parent | 17e64ffd852f8fe23b8e2e2ff1b62ee742af17a6 (diff) | |
| download | frameworks_base-eb034fbca40006c55db143047eb628c4b657730a.zip frameworks_base-eb034fbca40006c55db143047eb628c4b657730a.tar.gz frameworks_base-eb034fbca40006c55db143047eb628c4b657730a.tar.bz2 | |
AVD now support path morphing.
Basically extended the ValueAnimator to support a new type: pathType.
Add the PathDataEvaluator internally to interpolate path data.
Update test to show the path morphing.
Change-Id: I89db0199cbc12e3041790a6115f3f50b80213cdb
Diffstat (limited to 'tests/VectorDrawableTest/res/anim')
| -rw-r--r-- | tests/VectorDrawableTest/res/anim/trim_path_animation05.xml | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/tests/VectorDrawableTest/res/anim/trim_path_animation05.xml b/tests/VectorDrawableTest/res/anim/trim_path_animation05.xml new file mode 100644 index 0000000..7012f4b --- /dev/null +++ b/tests/VectorDrawableTest/res/anim/trim_path_animation05.xml @@ -0,0 +1,35 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2014 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> + +<set xmlns:android="http://schemas.android.com/apk/res/android" + android:ordering="sequentially" > + + <objectAnimator + android:duration="3000" + android:propertyName="pathData" + android:valueFrom="@string/triangle" + android:valueTo="@string/rectangle" + android:valueType="pathType"/> + + <objectAnimator + android:duration="3000" + android:propertyName="pathData" + android:valueFrom="@string/rectangle2" + android:valueTo="@string/equal2" + android:valueType="pathType"/> + +</set>
\ No newline at end of file |
