FileDocCategorySizeDatePackage
NotificationViewWrapper.javaAPI DocAndroid 5.1 API2123Thu Mar 12 22:22:42 GMT 2015com.android.systemui.statusbar

NotificationViewWrapper

public 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 voidnotifyContentUpdated()
Notifies this wrapper that the content of the view might have changed.

public abstract voidsetDark(boolean dark, boolean fade, long delay)
In dark mode, we draw as little as possible, assuming a black background.

param
dark whether we should display ourselves in dark mode
param
fade whether to animate the transition if the mode changes
param
delay if fading, the delay of the animation

public static com.android.systemui.statusbar.NotificationViewWrapperwrap(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);
        }