diff options
author | nebkat <nebkat@teamhacksung.org> | 2012-12-16 16:23:58 +0000 |
---|---|---|
committer | nebkat <nebkat@teamhacksung.org> | 2012-12-16 16:23:58 +0000 |
commit | 177b57c73a876d9d18d2134221315b3e59ab11e9 (patch) | |
tree | f0535d55ec2c0f1353099cfcd6ceac8b90ace14c /src/com/cyanogenmod/trebuchet/CellLayout.java | |
parent | 9c4a28841f428007ac79b8b03192ff8938ed5784 (diff) | |
download | packages_apps_trebuchet-177b57c73a876d9d18d2134221315b3e59ab11e9.zip packages_apps_trebuchet-177b57c73a876d9d18d2134221315b3e59ab11e9.tar.gz packages_apps_trebuchet-177b57c73a876d9d18d2134221315b3e59ab11e9.tar.bz2 |
Workspace: Stretch screens
Change-Id: I5b587ec8e90a45e5e1df6112299ab298c0f907be
Diffstat (limited to 'src/com/cyanogenmod/trebuchet/CellLayout.java')
-rw-r--r-- | src/com/cyanogenmod/trebuchet/CellLayout.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/com/cyanogenmod/trebuchet/CellLayout.java b/src/com/cyanogenmod/trebuchet/CellLayout.java index 0b12255..d61ffba 100644 --- a/src/com/cyanogenmod/trebuchet/CellLayout.java +++ b/src/com/cyanogenmod/trebuchet/CellLayout.java @@ -188,7 +188,7 @@ public class CellLayout extends ViewGroup { TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.CellLayout, defStyle, 0); mCellWidth = mOriginalCellWidth = a.getDimensionPixelSize(R.styleable.CellLayout_cellWidth, 10); - mCellHeight =mOriginalCellHeight = a.getDimensionPixelSize(R.styleable.CellLayout_cellHeight, 10); + mCellHeight = mOriginalCellHeight = a.getDimensionPixelSize(R.styleable.CellLayout_cellHeight, 10); mWidthGap = mOriginalWidthGap = a.getDimensionPixelSize(R.styleable.CellLayout_widthGap, 0); mHeightGap = mOriginalHeightGap = a.getDimensionPixelSize(R.styleable.CellLayout_heightGap, 0); mMaxGap = a.getDimensionPixelSize(R.styleable.CellLayout_maxGap, 0); @@ -901,6 +901,11 @@ public class CellLayout extends ViewGroup { return distance; } + void setCellGaps(int widthGap, int heightGap) { + mWidthGap = mOriginalWidthGap = widthGap; + mHeightGap = mOriginalHeightGap = heightGap; + } + int getCellWidth() { return mCellWidth; } |