Updating the widget tray
-> adding dark panel / associated visual updates -> cleaning up the sizing / padding / to match all apps -> fixing a couple things from previous CL Change-Id: I4f663af7022337d687124ef25a22bac03d9d6af9
This commit is contained in:
1 parent
9bfdb76aaf
commit
b172c13dcc
17 files changed
+118
-108
No files matched your search
@@ -56,18 +56,6 @@ public class PagedViewGridLayout extends GridLayout implements Page {
|
||||
}
|
||||
}
|
||||
|
||||
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
|
||||
// PagedView currently has issues with different-sized pages since it calculates the
|
||||
// offset of each page to scroll to before it updates the actual size of each page
|
||||
// (which can change depending on the content if the contents aren't a fixed size).
|
||||
// We work around this by having a minimum size on each widget page).
|
||||
int widthSpecSize = Math.min(getSuggestedMinimumWidth(),
|
||||
MeasureSpec.getSize(widthMeasureSpec));
|
||||
int widthSpecMode = MeasureSpec.EXACTLY;
|
||||
super.onMeasure(MeasureSpec.makeMeasureSpec(widthSpecSize, widthSpecMode),
|
||||
heightMeasureSpec);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onDetachedFromWindow() {
|
||||
super.onDetachedFromWindow();
|
||||
|
||||
Reference in new issue
Block a user