diff options
author | Winson Chung <winsonc@google.com> | 2011-06-15 19:51:24 -0700 |
---|---|---|
committer | Winson Chung <winsonc@google.com> | 2011-06-24 10:49:03 -0700 |
commit | fd3385fe9e0f034b04f99d5d59a58d74fe040da4 (patch) | |
tree | 6ea22637ec38883c8cef8318d4a6e312f32b8656 /src/com/android/launcher2/PagedViewWidget.java | |
parent | 4e076545e4ccdbd3c045a3fa33869a2b7519a0cc (diff) | |
download | android_packages_apps_Trebuchet-fd3385fe9e0f034b04f99d5d59a58d74fe040da4.tar.gz android_packages_apps_Trebuchet-fd3385fe9e0f034b04f99d5d59a58d74fe040da4.tar.bz2 android_packages_apps_Trebuchet-fd3385fe9e0f034b04f99d5d59a58d74fe040da4.zip |
Using GridLayout in AppsCustomize widgets tab.
- Starting to implement new widgets design
- Hiding outlines in phone ui while dragging
- Making the tab bar show only when we have items as well
Change-Id: Ic027f9ba83fc0982f2f92a90412f050a8e248f9c
Diffstat (limited to 'src/com/android/launcher2/PagedViewWidget.java')
-rw-r--r-- | src/com/android/launcher2/PagedViewWidget.java | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/com/android/launcher2/PagedViewWidget.java b/src/com/android/launcher2/PagedViewWidget.java index d6f665691..365965d13 100644 --- a/src/com/android/launcher2/PagedViewWidget.java +++ b/src/com/android/launcher2/PagedViewWidget.java @@ -112,11 +112,6 @@ public class PagedViewWidget extends LinearLayout implements Checkable { final TextView dims = (TextView) findViewById(R.id.widget_dims); dims.setText(String.format(mDimensionsFormatString, cellSpan[0], cellSpan[1])); dims.setLayerType(View.LAYER_TYPE_SOFTWARE, null); - - // Hide the divider in the Phone UI. - if (!LauncherApplication.isScreenLarge()) { - findViewById(R.id.divider).setVisibility(View.GONE); - } } public void applyFromResolveInfo(PackageManager pm, ResolveInfo info, @@ -133,11 +128,6 @@ public class PagedViewWidget extends LinearLayout implements Checkable { dims.setText(String.format(mDimensionsFormatString, 1, 1)); dims.setLayerType(View.LAYER_TYPE_SOFTWARE, null); } - - // Hide the divider in the Phone UI. - if (!LauncherApplication.isScreenLarge()) { - findViewById(R.id.divider).setVisibility(View.GONE); - } } public void setHolographicOutline(Bitmap holoOutline) { @@ -184,7 +174,8 @@ public class PagedViewWidget extends LinearLayout implements Checkable { mPaint.setAlpha(mHolographicAlpha); canvas.save(); canvas.scale(mTmpScaleRect.right, mTmpScaleRect.bottom); - canvas.drawBitmap(mHolographicOutline, 0, 0, mPaint); + canvas.drawBitmap(mHolographicOutline, mPreviewImageView.getLeft(), + mPreviewImageView.getTop(), mPaint); canvas.restore(); } } |