summaryrefslogtreecommitdiffstats
path: root/src/com/cyanogenmod/trebuchet/CellLayout.java
diff options
context:
space:
mode:
authorJorge Ruesga <jorge@ruesga.com>2013-04-28 05:11:42 +0200
committerJorge Ruesga <jorge@ruesga.com>2013-05-07 03:26:39 +0200
commitdecbaf63416b21d1aece708b8c0b6523b47f74ac (patch)
treec2f7d9ea09bb0eb6c00bcb9d04bc943a7de196f0 /src/com/cyanogenmod/trebuchet/CellLayout.java
parent59b16ee37be235d175a04114af9de402f5d5dfec (diff)
downloadandroid_packages_apps_Trebuchet-decbaf63416b21d1aece708b8c0b6523b47f74ac.tar.gz
android_packages_apps_Trebuchet-decbaf63416b21d1aece708b8c0b6523b47f74ac.tar.bz2
android_packages_apps_Trebuchet-decbaf63416b21d1aece708b8c0b6523b47f74ac.zip
Trebuchet: Labels on dock items
Patchset 4: Discard item scale and use paddings to adjust the workspace Patchset 5: mHideDockIconLabels = false on vertical hotseat Patchset 6: Fixed FolderIcon typo Fixed inline style Remove Workspace injection on Launcher class Use isLargeScreen to show text in vertical hotseat Change-Id: I00c57a28b4c7110b66ec6f856df8865006a76699 JIRA: CYAN-523 Issue: https://jira.cyanogenmod.org/browse/CYAN-523 Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Diffstat (limited to 'src/com/cyanogenmod/trebuchet/CellLayout.java')
-rw-r--r--src/com/cyanogenmod/trebuchet/CellLayout.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/com/cyanogenmod/trebuchet/CellLayout.java b/src/com/cyanogenmod/trebuchet/CellLayout.java
index a59a96e0d..6062c31f2 100644
--- a/src/com/cyanogenmod/trebuchet/CellLayout.java
+++ b/src/com/cyanogenmod/trebuchet/CellLayout.java
@@ -348,6 +348,15 @@ public class CellLayout extends ViewGroup {
requestLayout();
}
+ void setCellDimensions(int cellWidth, int cellHeight, int widthGap, int heightGap) {
+ mCellWidth = cellWidth;
+ mCellHeight = cellHeight;
+ mWidthGap = widthGap;
+ mHeightGap = heightGap;
+ mShortcutsAndWidgets.setCellDimensions(mCellWidth, mCellHeight, mWidthGap, mHeightGap);
+ requestLayout();
+ }
+
private void invalidateBubbleTextView(BubbleTextView icon) {
final int padding = icon.getPressedOrFocusedBackgroundPadding();
invalidate(icon.getLeft() + getPaddingLeft() - padding,