public class NotificationCustomViewWrapper extends NotificationViewWrapper
mDark, mDarkInitialized, mGrayscaleColorMatrix, mRow, mView
Modifier | Constructor and Description |
---|---|
protected |
NotificationCustomViewWrapper(View view,
com.android.systemui.statusbar.ExpandableNotificationRow row) |
Modifier and Type | Method and Description |
---|---|
protected void |
fadeGrayscale(boolean dark,
long delay) |
int |
getCustomBackgroundColor() |
void |
notifyContentUpdated(StatusBarNotification notification)
Notifies this wrapper that the content of the view might have changed.
|
void |
setDark(boolean dark,
boolean fade,
long delay)
In dark mode, we draw as little as possible, assuming a black background.
|
void |
setShowingLegacyBackground(boolean showing) |
void |
setVisible(boolean visible)
Set this view to be fully visible or gone
|
protected void |
updateGrayscale(boolean dark) |
getCurrentState, getNotificationHeader, setContentHeight, startIntensityAnimation, transformFrom, transformFrom, transformTo, transformTo, updateExpandability, updateGrayscaleMatrix, wrap
protected NotificationCustomViewWrapper(View view, com.android.systemui.statusbar.ExpandableNotificationRow row)
public void setDark(boolean dark, boolean fade, long delay)
NotificationViewWrapper
setDark
in class NotificationViewWrapper
dark
- whether we should display ourselves in dark modefade
- whether to animate the transition if the mode changesdelay
- if fading, the delay of the animationprotected void fadeGrayscale(boolean dark, long delay)
protected void updateGrayscale(boolean dark)
public void setVisible(boolean visible)
com.android.systemui.statusbar.TransformableView
setVisible
in interface com.android.systemui.statusbar.TransformableView
setVisible
in class NotificationViewWrapper
public void notifyContentUpdated(StatusBarNotification notification)
NotificationViewWrapper
notifyContentUpdated
in class NotificationViewWrapper
public int getCustomBackgroundColor()
getCustomBackgroundColor
in class NotificationViewWrapper
public void setShowingLegacyBackground(boolean showing)
setShowingLegacyBackground
in class NotificationViewWrapper