summaryrefslogtreecommitdiffstats
path: root/tests/VectorDrawableTest/src
diff options
context:
space:
mode:
authorztenghui <ztenghui@google.com>2014-11-19 10:38:18 -0800
committerztenghui <ztenghui@google.com>2014-11-20 14:41:33 -0800
commit5b84eace6cb79c42fe43480f08c68b7dea4e074a (patch)
treea401793cd0171d04d5b3e41f6fe6b654563bf397 /tests/VectorDrawableTest/src
parent521ca5f8fba355f526e82dc3a8fc6520e4379874 (diff)
downloadframeworks_base-5b84eace6cb79c42fe43480f08c68b7dea4e074a.zip
frameworks_base-5b84eace6cb79c42fe43480f08c68b7dea4e074a.tar.gz
frameworks_base-5b84eace6cb79c42fe43480f08c68b7dea4e074a.tar.bz2
ASLD: ASLD's XML reversible flag can turn off the reverse behavior now.
Previously, the android:reversible flag behaves like a suggestion. Now it is used to enforce no reverse when set to false. In this way, user can safely setup one direction animation only. When set to true, but AVD can't reverse , then it will show a warning. At the same time, update the tests to show different cases, including AnimationDrawable. b/18413484 Change-Id: I5552c49dcbd76b0724b4d5593bce8388b27bd905
Diffstat (limited to 'tests/VectorDrawableTest/src')
-rw-r--r--tests/VectorDrawableTest/src/com/android/test/dynamic/AnimatedStateVectorDrawableTest.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/VectorDrawableTest/src/com/android/test/dynamic/AnimatedStateVectorDrawableTest.java b/tests/VectorDrawableTest/src/com/android/test/dynamic/AnimatedStateVectorDrawableTest.java
index 566cc4b..5386555 100644
--- a/tests/VectorDrawableTest/src/com/android/test/dynamic/AnimatedStateVectorDrawableTest.java
+++ b/tests/VectorDrawableTest/src/com/android/test/dynamic/AnimatedStateVectorDrawableTest.java
@@ -27,9 +27,16 @@ public class AnimatedStateVectorDrawableTest extends Activity {
private static final String LOGCAT = "AnimatedStateVectorDrawableTest";
protected int[] icon = {
+ // These shows pairs of ASLD , the left side set the reversible to true.
+ // the right side set to false.
R.drawable.state_animation_vector_drawable01,
+ R.drawable.state_animation_vector_drawable01_false,
R.drawable.state_animation_vector_drawable02,
+ R.drawable.state_animation_vector_drawable02_false,
R.drawable.state_animation_vector_drawable03,
+ R.drawable.state_animation_vector_drawable03_false,
+ R.drawable.state_animation_drawable04,
+ R.drawable.state_animation_drawable04_false,
};
@Override
@@ -39,7 +46,7 @@ public class AnimatedStateVectorDrawableTest extends Activity {
ScrollView scrollView = new ScrollView(this);
GridLayout container = new GridLayout(this);
scrollView.addView(container);
- container.setColumnCount(5);
+ container.setColumnCount(2);
for (int i = 0; i < icon.length; i++) {
CheckBox button = new CheckBox(this);