summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/LauncherState.java
diff options
context:
space:
mode:
authorTony <twickham@google.com>2019-03-03 15:32:12 -0800
committerTony <twickham@google.com>2019-03-03 15:43:50 -0800
commit4bb4b89b9a677ae3548fefdcbc11be9bd906c24a (patch)
treea2adacb392e5c6c4f23e55e634f6427017383840 /src/com/android/launcher3/LauncherState.java
parent9db9d62b278c69ba62993696f0456ab5c0e39a95 (diff)
downloadandroid_packages_apps_Trebuchet-4bb4b89b9a677ae3548fefdcbc11be9bd906c24a.tar.gz
android_packages_apps_Trebuchet-4bb4b89b9a677ae3548fefdcbc11be9bd906c24a.tar.bz2
android_packages_apps_Trebuchet-4bb4b89b9a677ae3548fefdcbc11be9bd906c24a.zip
Scale and translate hotseat with workspace instead of all apps
- Move the hotseat alongside workspace instead of on top of all apps in xml layout - Set pivot point of hotseat to match the workspace's, and apply the same scale - Translate the hotseat with the workspace instead of all apps - SpringLoadedState does not scale or translate the hotseat Change-Id: Ic45fe99f83f0e0012afa78073d9577e65da444e2
Diffstat (limited to 'src/com/android/launcher3/LauncherState.java')
-rw-r--r--src/com/android/launcher3/LauncherState.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/com/android/launcher3/LauncherState.java b/src/com/android/launcher3/LauncherState.java
index 6d8561269..b49578b14 100644
--- a/src/com/android/launcher3/LauncherState.java
+++ b/src/com/android/launcher3/LauncherState.java
@@ -188,6 +188,13 @@ public class LauncherState {
}
/**
+ * @return Whether we should scale the hotseat as if it were part of the workspace.
+ */
+ public boolean scaleHotseatWithWorkspace() {
+ return true;
+ }
+
+ /**
* Returns 2 floats designating how to transition overview:
* scale for the current and adjacent pages
* translationY factor where 0 is top aligned and 0.5 is centered vertically