From decbaf63416b21d1aece708b8c0b6523b47f74ac Mon Sep 17 00:00:00 2001 From: Jorge Ruesga Date: Sun, 28 Apr 2013 05:11:42 +0200 Subject: 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 --- src/com/cyanogenmod/trebuchet/CellLayout.java | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/com/cyanogenmod/trebuchet/CellLayout.java') 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, -- cgit v1.2.3