summaryrefslogtreecommitdiffstats
path: root/v4/api21/android
diff options
context:
space:
mode:
authorChris Banes <chrisbanes@google.com>2015-04-13 08:32:43 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-04-13 08:32:46 +0000
commitd89c7bec4d0f9bb268f97fe091e3a1c1634977c9 (patch)
treebd3fb11c9a0fb54a630729f884c662c52212e10f /v4/api21/android
parente0e8d454f08d3a86a8b7c172b2b292af4c11d6b2 (diff)
parente322b8bcc717dfd663677ed5cb59c6d1c3cb27af (diff)
downloadandroid_frameworks_support-d89c7bec4d0f9bb268f97fe091e3a1c1634977c9.tar.gz
android_frameworks_support-d89c7bec4d0f9bb268f97fe091e3a1c1634977c9.tar.bz2
android_frameworks_support-d89c7bec4d0f9bb268f97fe091e3a1c1634977c9.zip
Merge "Add translationZ/Z methods to ViewPropertyAnimatorCompat" into lmp-mr1-ub-dev
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);
+ }
+
+}