summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/InsettableFrameLayout.java
diff options
context:
space:
mode:
authorHyunyoung Song <hyunyoungs@google.com>2016-06-06 14:19:02 -0700
committerHyunyoung Song <hyunyoungs@google.com>2016-06-06 14:19:02 -0700
commit645764e3e5fa34d9adcddfc722d726b76f048306 (patch)
tree33f518f8c6c48fb1b497153fc3c547ab56a0c41b /src/com/android/launcher3/InsettableFrameLayout.java
parent85fc55a976a1f1605ad22deff74f5ceb080913e6 (diff)
downloadandroid_packages_apps_Trebuchet-645764e3e5fa34d9adcddfc722d726b76f048306.tar.gz
android_packages_apps_Trebuchet-645764e3e5fa34d9adcddfc722d726b76f048306.tar.bz2
android_packages_apps_Trebuchet-645764e3e5fa34d9adcddfc722d726b76f048306.zip
Pull up all apps interaction
First phase implementation: dragging and animation interaction is implemented namely in two classes. ScrollGestureDetector and AllAppsTransitionController. FeatureFlag.LAUNCHER#_ALL_APPS_PULL_UP will be true for only AOSP and not in the extending builds. This way, we can safely iterate without turning it on the shipped ready version. b/28917826 Change-Id: I0501309c0121880ffe0555f82d6ac5a145581bb1
Diffstat (limited to 'src/com/android/launcher3/InsettableFrameLayout.java')
-rw-r--r--src/com/android/launcher3/InsettableFrameLayout.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/com/android/launcher3/InsettableFrameLayout.java b/src/com/android/launcher3/InsettableFrameLayout.java
index f4bfa4549..61edc0f7f 100644
--- a/src/com/android/launcher3/InsettableFrameLayout.java
+++ b/src/com/android/launcher3/InsettableFrameLayout.java
@@ -9,6 +9,9 @@ import android.view.ViewDebug;
import android.view.ViewGroup;
import android.widget.FrameLayout;
+import com.android.launcher3.allapps.AllAppsContainerView;
+import com.android.launcher3.config.FeatureFlags;
+
public class InsettableFrameLayout extends FrameLayout implements
ViewGroup.OnHierarchyChangeListener, Insettable {
@@ -31,6 +34,9 @@ public class InsettableFrameLayout extends FrameLayout implements
lp.rightMargin += (newInsets.right - oldInsets.right);
lp.bottomMargin += (newInsets.bottom - oldInsets.bottom);
}
+ if (FeatureFlags.LAUNCHER3_ALL_APPS_PULL_UP && child instanceof AllAppsContainerView) {
+ lp.setMargins(0, 0, 0, lp.bottomMargin);
+ }
child.setLayoutParams(lp);
}