public class NotificationTemplateViewWrapper extends NotificationHeaderViewWrapper
Modifier and Type | Field and Description |
---|---|
protected ImageView |
mPicture |
mColor, mInvertHelper, mTransformationHelper
mDark, mDarkInitialized, mGrayscaleColorMatrix, mRow, mView
Modifier | Constructor and Description |
---|---|
protected |
NotificationTemplateViewWrapper(Context ctx,
View view,
com.android.systemui.statusbar.ExpandableNotificationRow row) |
Modifier and Type | Method and Description |
---|---|
void |
notifyContentUpdated(StatusBarNotification notification)
Notifies this wrapper that the content of the view might have changed.
|
void |
setContentHeight(int contentHeight,
int minHeightHint) |
void |
setDark(boolean dark,
boolean fade,
long delay)
In dark mode, we draw as little as possible, assuming a black background.
|
protected void |
setPictureGrayscale(boolean grayscale,
boolean fade,
long delay) |
protected void |
updateInvertHelper() |
protected void |
updateTransformedTypes() |
fadeGrayscale, getCurrentState, getNotificationHeader, resolveHeaderViews, setVisible, transformFrom, transformFrom, transformTo, transformTo, updateExpandability, updateGrayscale
getCustomBackgroundColor, setShowingLegacyBackground, startIntensityAnimation, updateGrayscaleMatrix, wrap
protected ImageView mPicture
public void notifyContentUpdated(StatusBarNotification notification)
NotificationViewWrapper
notifyContentUpdated
in class NotificationHeaderViewWrapper
protected void updateInvertHelper()
updateInvertHelper
in class NotificationHeaderViewWrapper
protected void updateTransformedTypes()
updateTransformedTypes
in class NotificationHeaderViewWrapper
public void setDark(boolean dark, boolean fade, long delay)
NotificationViewWrapper
setDark
in class NotificationHeaderViewWrapper
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 setPictureGrayscale(boolean grayscale, boolean fade, long delay)
public void setContentHeight(int contentHeight, int minHeightHint)
setContentHeight
in class NotificationViewWrapper