From 7bc6a3f023ca3e1dde91fc97b6036dee3ba538a2 Mon Sep 17 00:00:00 2001 From: ztenghui Date: Tue, 15 Jul 2014 15:12:12 -0700 Subject: Add more reverse support to AnimatedVD bug:16162242 Change-Id: Ie0b7618beeb65ebeb65db41600165837524bcee4 --- .../drawable/state_animation_vector_drawable.xml | 47 ---------------------- .../drawable/state_animation_vector_drawable01.xml | 47 ++++++++++++++++++++++ .../drawable/state_animation_vector_drawable02.xml | 26 ++++++++++++ .../drawable/state_animation_vector_drawable03.xml | 26 ++++++++++++ .../dynamic/AnimatedStateVectorDrawableTest.java | 6 ++- 5 files changed, 103 insertions(+), 49 deletions(-) delete mode 100644 tests/VectorDrawableTest/res/drawable/state_animation_vector_drawable.xml create mode 100644 tests/VectorDrawableTest/res/drawable/state_animation_vector_drawable01.xml create mode 100644 tests/VectorDrawableTest/res/drawable/state_animation_vector_drawable02.xml create mode 100644 tests/VectorDrawableTest/res/drawable/state_animation_vector_drawable03.xml (limited to 'tests') diff --git a/tests/VectorDrawableTest/res/drawable/state_animation_vector_drawable.xml b/tests/VectorDrawableTest/res/drawable/state_animation_vector_drawable.xml deleted file mode 100644 index 30fb1b861669..000000000000 --- a/tests/VectorDrawableTest/res/drawable/state_animation_vector_drawable.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/tests/VectorDrawableTest/res/drawable/state_animation_vector_drawable01.xml b/tests/VectorDrawableTest/res/drawable/state_animation_vector_drawable01.xml new file mode 100644 index 000000000000..18d7755471e0 --- /dev/null +++ b/tests/VectorDrawableTest/res/drawable/state_animation_vector_drawable01.xml @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + diff --git a/tests/VectorDrawableTest/res/drawable/state_animation_vector_drawable02.xml b/tests/VectorDrawableTest/res/drawable/state_animation_vector_drawable02.xml new file mode 100644 index 000000000000..6a67b0232a4d --- /dev/null +++ b/tests/VectorDrawableTest/res/drawable/state_animation_vector_drawable02.xml @@ -0,0 +1,26 @@ + + + + + + + + diff --git a/tests/VectorDrawableTest/res/drawable/state_animation_vector_drawable03.xml b/tests/VectorDrawableTest/res/drawable/state_animation_vector_drawable03.xml new file mode 100644 index 000000000000..65cf25be4cc7 --- /dev/null +++ b/tests/VectorDrawableTest/res/drawable/state_animation_vector_drawable03.xml @@ -0,0 +1,26 @@ + + + + + + + + diff --git a/tests/VectorDrawableTest/src/com/android/test/dynamic/AnimatedStateVectorDrawableTest.java b/tests/VectorDrawableTest/src/com/android/test/dynamic/AnimatedStateVectorDrawableTest.java index 0ae0136cd204..566cc4b5de4e 100644 --- a/tests/VectorDrawableTest/src/com/android/test/dynamic/AnimatedStateVectorDrawableTest.java +++ b/tests/VectorDrawableTest/src/com/android/test/dynamic/AnimatedStateVectorDrawableTest.java @@ -27,7 +27,9 @@ public class AnimatedStateVectorDrawableTest extends Activity { private static final String LOGCAT = "AnimatedStateVectorDrawableTest"; protected int[] icon = { - R.drawable.state_animation_vector_drawable + R.drawable.state_animation_vector_drawable01, + R.drawable.state_animation_vector_drawable02, + R.drawable.state_animation_vector_drawable03, }; @Override @@ -37,7 +39,7 @@ public class AnimatedStateVectorDrawableTest extends Activity { ScrollView scrollView = new ScrollView(this); GridLayout container = new GridLayout(this); scrollView.addView(container); - container.setColumnCount(1); + container.setColumnCount(5); for (int i = 0; i < icon.length; i++) { CheckBox button = new CheckBox(this); -- cgit v1.2.3-59-g8ed1b