NotificationViewWrapperpublic abstract class NotificationViewWrapper extends Object Wraps the actual notification content view; used to implement behaviors which are different for
the individual templates and custom views. |
Fields Summary |
---|
protected final android.view.View | mView |
Constructors Summary |
---|
protected NotificationViewWrapper(android.view.View view)
mView = view;
|
Methods Summary |
---|
public void | notifyContentUpdated()Notifies this wrapper that the content of the view might have changed.
| public abstract void | setDark(boolean dark, boolean fade, long delay)In dark mode, we draw as little as possible, assuming a black background.
| public static com.android.systemui.statusbar.NotificationViewWrapper | wrap(android.content.Context ctx, android.view.View v)
// TODO: Figure out a better way to find out which template the view is.
if (v.findViewById(com.android.internal.R.id.media_actions) != null) {
return new NotificationMediaViewWrapper(ctx, v);
} else if (v.getId() == com.android.internal.R.id.status_bar_latest_event_content) {
return new NotificationTemplateViewWrapper(ctx, v);
} else {
return new NotificationCustomViewWrapper(v);
}
|
|