AdaptiveIconDrawable

Class of android.graphics.drawable · AdaptiveIconDrawable.java · Android's reference

public class AdaptiveIconDrawable extends Drawable implements Drawable.Callback

AdaptiveIconDrawable ← Drawable

A launcher icon of two layers. Each layer is 108 by 108 units, and the icon shows the 72 units in the middle of them, inside a round mask.

Constructors

public AdaptiveIconDrawable(Drawable backgroundDrawable, Drawable foregroundDrawable) source
public AdaptiveIconDrawable(Drawable backgroundDrawable, Drawable foregroundDrawable, Drawable monochromeDrawable) source

Methods

public void inflate(android.content.res.Resources r, org.xmlpull.v1.XmlPullParser parser, android.util.AttributeSet attrs, android.content.res.Resources.Theme theme) throws org.xmlpull.v1.XmlPullParserException, java.io.IOException source

an adaptive icon's <background> and <foreground>, each its android:drawable or its child element

public static float getExtraInsetFraction() source
public Drawable getBackground() source
public Drawable getForeground() source
public Drawable getMonochrome() source
public Path getIconMask() source
protected void onBoundsChange(Rect bounds) source
public void draw(Canvas canvas) source
public void setAlpha(int alpha) source
public int getAlpha() source
public void setColorFilter(ColorFilter colorFilter) source
public int getOpacity() source
public boolean isStateful() source
protected boolean onStateChange(int[] state) source
public int getIntrinsicWidth() source
public int getIntrinsicHeight() source
public void invalidateDrawable(Drawable who) source
public void scheduleDrawable(Drawable who, Runnable what, long when) source
public void unscheduleDrawable(Drawable who, Runnable what) source

Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.