Remove gap between popup items
- Unround interior corners - Update colors (shortcuts are gray when next to notifications, notifications always white) - Clean up animation to animate entire popup with simple reveal instead of individual items animating with reveal and icon scale Bug: 35766387 Bug: 36110804 Change-Id: I33685d53e2db3904731676123dc230be4dabb5d4
This commit is contained in:
1 parent
d5645d406b
commit
acaf5b3a37
14 files changed
+223
-481
No files matched your search
@@ -21,7 +21,6 @@ import android.app.Notification;
|
||||
import android.content.Context;
|
||||
import android.graphics.Rect;
|
||||
import android.support.annotation.Nullable;
|
||||
import android.support.v4.content.ContextCompat;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.MotionEvent;
|
||||
import android.view.View;
|
||||
@@ -30,7 +29,7 @@ import android.widget.TextView;
|
||||
|
||||
import com.android.launcher3.ItemInfo;
|
||||
import com.android.launcher3.R;
|
||||
import com.android.launcher3.anim.PillHeightRevealOutlineProvider;
|
||||
import com.android.launcher3.anim.RoundedRectRevealOutlineProvider;
|
||||
import com.android.launcher3.graphics.IconPalette;
|
||||
import com.android.launcher3.logging.UserEventDispatcher.LogContainerProvider;
|
||||
import com.android.launcher3.popup.PopupItemView;
|
||||
@@ -87,9 +86,10 @@ public class NotificationItemView extends PopupItemView implements LogContainerP
|
||||
}
|
||||
|
||||
public Animator animateHeightRemoval(int heightToRemove) {
|
||||
final int newHeight = getHeight() - heightToRemove;
|
||||
return new PillHeightRevealOutlineProvider(mPillRect,
|
||||
getBackgroundRadius(), newHeight).createRevealAnimator(this, true /* isReversed */);
|
||||
Rect endRect = new Rect(mPillRect);
|
||||
endRect.bottom -= heightToRemove;
|
||||
return new RoundedRectRevealOutlineProvider(getBackgroundRadius(), getBackgroundRadius(),
|
||||
mPillRect, endRect, mRoundedCorners).createRevealAnimator(this, false);
|
||||
}
|
||||
|
||||
public void updateHeader(int notificationCount, @Nullable IconPalette palette) {
|
||||
@@ -162,13 +162,6 @@ public class NotificationItemView extends PopupItemView implements LogContainerP
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getArrowColor(boolean isArrowAttachedToBottom) {
|
||||
return ContextCompat.getColor(getContext(), isArrowAttachedToBottom
|
||||
? R.color.popup_background_color
|
||||
: R.color.popup_header_background_color);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void fillInLogContainerData(View v, ItemInfo info, LauncherLogProto.Target target,
|
||||
LauncherLogProto.Target targetParent) {
|
||||
|
||||
Reference in new issue
Block a user