diff options
author | Jorge Ruesga <jorge@ruesga.com> | 2013-04-28 05:11:42 +0200 |
---|---|---|
committer | Jorge Ruesga <jorge@ruesga.com> | 2013-05-07 03:26:39 +0200 |
commit | decbaf63416b21d1aece708b8c0b6523b47f74ac (patch) | |
tree | c2f7d9ea09bb0eb6c00bcb9d04bc943a7de196f0 /src/com/cyanogenmod/trebuchet/CellLayout.java | |
parent | 59b16ee37be235d175a04114af9de402f5d5dfec (diff) | |
download | android_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.java | 9 |
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, |