public class CheckBoxDrawable extends ThreeStateDrawable
Modifier and Type | Field and Description |
---|---|
static int |
CHECKED |
static int |
SEMI_CHECKED |
static int |
UNCHECKED |
_alpha, _colorFilter, _offIcon, _onIcon, _semiIcon, _state, OFF, ON, SEMI
Constructor and Description |
---|
CheckBoxDrawable() |
Modifier and Type | Method and Description |
---|---|
int |
getChecked()
Get the check state of the icon
|
void |
setChecked(boolean checked)
Set the checked state of the icon
|
void |
setChecked(int checked)
Set the checked state of the icon
|
draw, getCurrentState, getOpacity, onBoundsChange, setAlpha, setColorFilter, setCurrentState
applyTheme, canApplyTheme, clearColorFilter, copyBounds, copyBounds, createFromPath, createFromResourceStream, createFromResourceStream, createFromStream, createFromXml, createFromXml, createFromXmlInner, createFromXmlInner, getAlpha, getBounds, getCallback, getChangingConfigurations, getColorFilter, getConstantState, getCurrent, getDirtyBounds, getHotspotBounds, getIntrinsicHeight, getIntrinsicWidth, getLayoutDirection, getLevel, getMinimumHeight, getMinimumWidth, getOpticalInsets, getOutline, getPadding, getState, getTransparentRegion, inflate, inflate, invalidateSelf, isAutoMirrored, isFilterBitmap, isProjected, isStateful, isVisible, jumpToCurrentState, mutate, onLayoutDirectionChanged, onLevelChange, onStateChange, resolveOpacity, scheduleSelf, setAutoMirrored, setBounds, setBounds, setCallback, setChangingConfigurations, setColorFilter, setDither, setFilterBitmap, setHotspot, setHotspotBounds, setLayoutDirection, setLevel, setState, setTint, setTintBlendMode, setTintList, setTintMode, setVisible, unscheduleSelf
public static final int CHECKED
public static final int SEMI_CHECKED
public static final int UNCHECKED
public void setChecked(int checked)
checked
- Check state - CHECKED
, UNCHECKED
,
or SEMI_CHECKED
public void setChecked(boolean checked)
checked
- True if checked, false if uncheckedpublic int getChecked()
CHECKED
, UNCHECKED
, or SEMI_CHECKED