mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 10:48:19 +00:00
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
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user