正常情況下的樣子:?
?下拉App抽屜后的樣子:
修改方案:
qssi14/packages/apps/Launcher3/src/com/android/launcher3/allapps/ActivityAllAppsContainerView.java
protected void updateHeaderScroll(int scrolledOffset) {float prog1 = Utilities.boundToRange((float) scrolledOffset / mHeaderThreshold, 0f, 1f);int headerColor = getHeaderColor(prog1);
//注釋相關代碼
// int tabsAlpha = mHeader.getPeripheralProtectionHeight() == 0 ? 0
// : (int) (Utilities.boundToRange(
// (scrolledOffset + mHeader.mSnappedScrolledY) /mHeaderThreshold, 0f, 1f)
// * 255);
// if (headerColor != mHeaderColor || mTabsProtectionAlpha != tabsAlpha) {
// mHeaderColor = headerColor;
// mTabsProtectionAlpha = tabsAlpha;
// invalidateHeader();
// }if (mSearchUiManager.getEditText() == null) {return;}