summaryrefslogtreecommitdiffstats
path: root/v4/api21/android
diff options
context:
space:
mode:
authorChris Banes <chrisbanes@google.com>2015-04-09 16:13:33 +0100
committerChris Banes <chrisbanes@google.com>2015-04-09 16:31:02 +0100
commite322b8bcc717dfd663677ed5cb59c6d1c3cb27af (patch)
treee08f620fd93c122dec1121b8166d67a2d851e6b8 /v4/api21/android
parent73a0c3c71f0d0a756664652de74c2e55dc31dbc3 (diff)
downloadandroid_frameworks_support-e322b8bcc717dfd663677ed5cb59c6d1c3cb27af.tar.gz
android_frameworks_support-e322b8bcc717dfd663677ed5cb59c6d1c3cb27af.tar.bz2
android_frameworks_support-e322b8bcc717dfd663677ed5cb59c6d1c3cb27af.zip
Add translationZ/Z methods to ViewPropertyAnimatorCompat
Change-Id: I4dc730cd845c1ebda7da8d3437888f27f5ebfa91
Diffstat (limited to 'v4/api21/android')
-rw-r--r--v4/api21/android/support/v4/view/ViewPropertyAnimatorCompatLollipop.java39
1 files changed, 39 insertions, 0 deletions
diff --git a/v4/api21/android/support/v4/view/ViewPropertyAnimatorCompatLollipop.java b/v4/api21/android/support/v4/view/ViewPropertyAnimatorCompatLollipop.java
new file mode 100644
index 0000000000..3bfc427e77
--- /dev/null
+++ b/v4/api21/android/support/v4/view/ViewPropertyAnimatorCompatLollipop.java
@@ -0,0 +1,39 @@
+/*
+ * Copyright (C) 2015 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.support.v4.view;
+
+import android.view.View;
+
+class ViewPropertyAnimatorCompatLollipop {
+
+ public static void translationZ(View view, float value) {
+ view.animate().translationZ(value);
+ }
+
+ public static void translationZBy(View view, float value) {
+ view.animate().translationZBy(value);
+ }
+
+ public static void z(View view, float value) {
+ view.animate().z(value);
+ }
+
+ public static void zBy(View view, float value) {
+ view.animate().zBy(value);
+ }
+
+}