public class NotificationHeaderViewWrapper extends NotificationViewWrapper
Modifier and Type | Field and Description |
---|---|
protected int |
mColor |
protected ViewInvertHelper |
mInvertHelper |
protected com.android.systemui.statusbar.ViewTransformationHelper |
mTransformationHelper |
mDark, mDarkInitialized, mGrayscaleColorMatrix, mRow, mView
Modifier | Constructor and Description |
---|---|
protected |
NotificationHeaderViewWrapper(Context ctx,
View view,
com.android.systemui.statusbar.ExpandableNotificationRow row) |
Modifier and Type | Method and Description |
---|---|
protected void |
fadeGrayscale(ImageView target,
boolean dark,
long delay) |
TransformState |
getCurrentState(int fadingView)
Get the current state of a view in a transform animation
|
NotificationHeaderView |
getNotificationHeader() |
void |
notifyContentUpdated(StatusBarNotification notification)
Notifies this wrapper that the content of the view might have changed.
|
protected void |
resolveHeaderViews() |
void |
setDark(boolean dark,
boolean fade,
long delay)
In dark mode, we draw as little as possible, assuming a black background.
|
void |
setVisible(boolean visible)
Set this view to be fully visible or gone
|
void |
transformFrom(com.android.systemui.statusbar.TransformableView notification)
Transform to this view from the given view
|
void |
transformFrom(com.android.systemui.statusbar.TransformableView notification,
float transformationAmount)
Transform to this view from the given view by a specified amount.
|
void |
transformTo(com.android.systemui.statusbar.TransformableView notification,
float transformationAmount)
Transform to the given view by a specified amount.
|
void |
transformTo(com.android.systemui.statusbar.TransformableView notification,
Runnable endRunnable)
Transform to the given view
|
void |
updateExpandability(boolean expandable,
View.OnClickListener onClickListener)
Update the appearance of the expand button.
|
protected void |
updateGrayscale(ImageView target,
boolean dark) |
protected void |
updateInvertHelper() |
protected void |
updateTransformedTypes() |
getCustomBackgroundColor, setContentHeight, setShowingLegacyBackground, startIntensityAnimation, updateGrayscaleMatrix, wrap
protected final ViewInvertHelper mInvertHelper
protected final com.android.systemui.statusbar.ViewTransformationHelper mTransformationHelper
protected int mColor
protected void resolveHeaderViews()
public void notifyContentUpdated(StatusBarNotification notification)
NotificationViewWrapper
notifyContentUpdated
in class NotificationViewWrapper
protected void updateInvertHelper()
protected void updateTransformedTypes()
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(ImageView target, boolean dark, long delay)
protected void updateGrayscale(ImageView target, boolean dark)
public void updateExpandability(boolean expandable, View.OnClickListener onClickListener)
NotificationViewWrapper
updateExpandability
in class NotificationViewWrapper
expandable
- should this view be expandableonClickListener
- the listener to invoke when the expand affordance is clicked onpublic NotificationHeaderView getNotificationHeader()
getNotificationHeader
in class NotificationViewWrapper
public TransformState getCurrentState(int fadingView)
com.android.systemui.statusbar.TransformableView
getCurrentState
in interface com.android.systemui.statusbar.TransformableView
getCurrentState
in class NotificationViewWrapper
fadingView
- which view we are interested inpublic void transformTo(com.android.systemui.statusbar.TransformableView notification, Runnable endRunnable)
com.android.systemui.statusbar.TransformableView
transformTo
in interface com.android.systemui.statusbar.TransformableView
transformTo
in class NotificationViewWrapper
notification
- the view to transform topublic void transformTo(com.android.systemui.statusbar.TransformableView notification, float transformationAmount)
com.android.systemui.statusbar.TransformableView
transformTo
in interface com.android.systemui.statusbar.TransformableView
transformTo
in class NotificationViewWrapper
notification
- the view to transform totransformationAmount
- how much transformation should be donepublic void transformFrom(com.android.systemui.statusbar.TransformableView notification)
com.android.systemui.statusbar.TransformableView
transformFrom
in interface com.android.systemui.statusbar.TransformableView
transformFrom
in class NotificationViewWrapper
notification
- the view to transform frompublic void transformFrom(com.android.systemui.statusbar.TransformableView notification, float transformationAmount)
com.android.systemui.statusbar.TransformableView
transformFrom
in interface com.android.systemui.statusbar.TransformableView
transformFrom
in class NotificationViewWrapper
notification
- the view to transform fromtransformationAmount
- how much transformation should be donepublic void setVisible(boolean visible)
com.android.systemui.statusbar.TransformableView
setVisible
in interface com.android.systemui.statusbar.TransformableView
setVisible
in class NotificationViewWrapper