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