diff options
author | Chet Haase <chet@google.com> | 2011-07-12 11:58:58 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-07-12 11:58:58 -0700 |
commit | 9893fd977182a00a0783b9b6374ff193195210c2 (patch) | |
tree | d4daa263eaad538a8b482602435138e67168f5d1 /core/tests/coretests/src/android/animation/ObjectAnimatorEventsTest.java | |
parent | 9702b5e02a6727bee69ccea26c593ebca238140f (diff) | |
parent | 7dfacdb1c820f955cb3cd6032ff5fbc2dd7d9df5 (diff) | |
download | frameworks_base-9893fd977182a00a0783b9b6374ff193195210c2.zip frameworks_base-9893fd977182a00a0783b9b6374ff193195210c2.tar.gz frameworks_base-9893fd977182a00a0783b9b6374ff193195210c2.tar.bz2 |
Merge "Fix Animator cancel() behavior"
Diffstat (limited to 'core/tests/coretests/src/android/animation/ObjectAnimatorEventsTest.java')
-rw-r--r-- | core/tests/coretests/src/android/animation/ObjectAnimatorEventsTest.java | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/core/tests/coretests/src/android/animation/ObjectAnimatorEventsTest.java b/core/tests/coretests/src/android/animation/ObjectAnimatorEventsTest.java new file mode 100644 index 0000000..606a939 --- /dev/null +++ b/core/tests/coretests/src/android/animation/ObjectAnimatorEventsTest.java @@ -0,0 +1,35 @@ +/* + * Copyright (C) 2011 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. + */ +package android.animation; + +import android.widget.Button; +import com.android.frameworks.coretests.R; + +/** + * Listener tests for ObjectAnimator. + */ +public class ObjectAnimatorEventsTest extends EventsTest { + + @Override + public void setUp() throws Exception { + final BasicAnimatorActivity activity = getActivity(); + Button button = (Button) activity.findViewById(R.id.animatingButton); + + mAnimator = ObjectAnimator.ofFloat(button, "translationX", 0, 100); + super.setUp(); + } + +} |