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.
public AdaptiveIconDrawable(Drawable backgroundDrawable, Drawable foregroundDrawable) sourcepublic AdaptiveIconDrawable(Drawable backgroundDrawable, Drawable foregroundDrawable, Drawable monochromeDrawable) sourcepublic 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 sourcean adaptive icon's <background> and <foreground>, each its android:drawable or its child element
public static float getExtraInsetFraction() sourcepublic Drawable getBackground() sourcepublic Drawable getForeground() sourcepublic Drawable getMonochrome() sourcepublic Path getIconMask() sourceprotected void onBoundsChange(Rect bounds) sourcepublic void draw(Canvas canvas) sourcepublic void setAlpha(int alpha) sourcepublic int getAlpha() sourcepublic void setColorFilter(ColorFilter colorFilter) sourcepublic int getOpacity() sourcepublic boolean isStateful() sourceprotected boolean onStateChange(int[] state) sourcepublic int getIntrinsicWidth() sourcepublic int getIntrinsicHeight() sourcepublic void invalidateDrawable(Drawable who) sourcepublic void scheduleDrawable(Drawable who, Runnable what, long when) sourcepublic void unscheduleDrawable(Drawable who, Runnable what) sourceMade 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.