summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher2/ItemInfo.java
diff options
context:
space:
mode:
authorAdam Cohen <adamcohen@google.com>2012-02-16 23:53:59 -0800
committerAdam Cohen <adamcohen@google.com>2012-02-27 17:30:32 -0800
commitd41fbf5680750e34335bba6b38298186c144a4b7 (patch)
treedea77d6aa9211dc085e4bb29aac18e9deef601c5 /src/com/android/launcher2/ItemInfo.java
parenta95d329dea8c1aa09f50cc7ca897f454b161a454 (diff)
downloadandroid_packages_apps_Trebuchet-d41fbf5680750e34335bba6b38298186c144a4b7.tar.gz
android_packages_apps_Trebuchet-d41fbf5680750e34335bba6b38298186c144a4b7.tar.bz2
android_packages_apps_Trebuchet-d41fbf5680750e34335bba6b38298186c144a4b7.zip
When adding or moving a resizable widget, the widget may resize
-> If a widget is resizable, and there is not enough room to add it in its current (or default) size, but can be scaled down to fit a certain area, it will be resized to fit the available space -> The resizing is animated using a crossfade and scale between the original dragView and the widget rendered in the final size Change-Id: I75db9dcabecce11598b3ae55f20b96b2ec6b7e87
Diffstat (limited to 'src/com/android/launcher2/ItemInfo.java')
-rw-r--r--src/com/android/launcher2/ItemInfo.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/com/android/launcher2/ItemInfo.java b/src/com/android/launcher2/ItemInfo.java
index 8d4662495..11a6c0d00 100644
--- a/src/com/android/launcher2/ItemInfo.java
+++ b/src/com/android/launcher2/ItemInfo.java
@@ -77,6 +77,15 @@ class ItemInfo {
int spanY = 1;
/**
+ * Indicates the minimum X cell span.
+ */
+ int minSpanX = 1;
+
+ /**
+ * Indicates the minimum Y cell span.
+ */
+ int minSpanY = 1;
+ /**
* Indicates whether the item is a gesture.
*/
boolean isGesture = false;