Enabling quantum look and feel everywhere

-> _l assets become default, new folder icon look is default
-> Starting to unify folder look / feel with all apps
-> New page indicators

Change-Id: I50b2c647fbcbe6ed27705527d8e16bd89e123d0b
This commit is contained in:
Adam Cohen
2014-07-07 11:58:56 -07:00
parent e54e67f898
commit 96bb79819e
108 changed files with 101 additions and 182 deletions

View File

@@ -767,11 +767,10 @@ public class DeviceProfile {
(allAppsIconSizePx / DynamicGrid.DEFAULT_ICON_SIZE_PX)));
pageIndicator = host.findViewById(R.id.apps_customize_page_indicator);
if (pageIndicator != null) {
lp = (FrameLayout.LayoutParams) pageIndicator.getLayoutParams();
lp.gravity = Gravity.CENTER_HORIZONTAL | Gravity.BOTTOM;
lp.width = LayoutParams.WRAP_CONTENT;
lp.height = pageIndicatorHeight;
pageIndicator.setLayoutParams(lp);
LinearLayout.LayoutParams lllp = (LinearLayout.LayoutParams) pageIndicator.getLayoutParams();
lllp.width = LayoutParams.WRAP_CONTENT;
lllp.height = pageIndicatorHeight;
pageIndicator.setLayoutParams(lllp);
}
AppsCustomizePagedView pagedView = (AppsCustomizePagedView)
@@ -796,6 +795,11 @@ public class DeviceProfile {
padding.bottom = Math.max(0, pageIndicatorHeight - paddingTB);
pagedView.setAllAppsPadding(padding);
pagedView.setWidgetsPageIndicatorPadding(pageIndicatorHeight);
// Horizontal padding for the whole paged view
int pagedViewPadding =
res.getDimensionPixelSize(R.dimen.apps_customize_horizontal_padding);
pagedView.setPadding(pagedViewPadding, 0, pagedViewPadding, 0);
}
}