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

NotificationOverflowIconsView

public class NotificationOverflowIconsView extends com.android.systemui.statusbar.phone.IconMerger
A view to display all the overflowing icons on Keyguard.

Fields Summary
private android.widget.TextView
mMoreText
private int
mTintColor
private int
mIconSize
private com.android.internal.util.NotificationColorUtil
mNotificationColorUtil
Constructors Summary
public NotificationOverflowIconsView(android.content.Context context, android.util.AttributeSet attrs)

        super(context, attrs);
    
Methods Summary
public voidaddNotification(NotificationData.Entry notification)

        StatusBarIconView v = new StatusBarIconView(getContext(), "",
                notification.notification.getNotification());
        v.setScaleType(ImageView.ScaleType.CENTER_INSIDE);
        addView(v, mIconSize, mIconSize);
        v.set(notification.icon.getStatusBarIcon());
        applyColor(notification.notification.getNotification(), v);
        updateMoreText();
    
private voidapplyColor(android.app.Notification notification, StatusBarIconView view)

        view.setColorFilter(mTintColor, PorterDuff.Mode.MULTIPLY);
    
protected voidonFinishInflate()

        super.onFinishInflate();
        mNotificationColorUtil = NotificationColorUtil.getInstance(getContext());
        mTintColor = getResources().getColor(R.color.keyguard_overflow_content_color);
        mIconSize = getResources().getDimensionPixelSize(
                com.android.internal.R.dimen.status_bar_icon_size);
    
public voidsetMoreText(android.widget.TextView moreText)

        mMoreText = moreText;
    
private voidupdateMoreText()

        mMoreText.setText(
                getResources().getString(R.string.keyguard_more_overflow_text, getChildCount()));