public class VisibilityDrawable extends ThreeStateDrawable implements Visibility2
_alpha, _colorFilter, _offIcon, _onIcon, _semiIcon, _state, OFF, ON, SEMIINVISIBLE, SEMI_VISIBLE, VISIBLE| Constructor and Description |
|---|
VisibilityDrawable() |
| Modifier and Type | Method and Description |
|---|---|
int |
getVisibility() |
void |
setVisibility(int visibility)
Set the visibility state of the icon
|
boolean |
setVisible(boolean visible)
Encapsulation of the visibility toggle implementation as an action.
|
draw, getCurrentState, getOpacity, onBoundsChange, setAlpha, setColorFilter, setCurrentStateapplyTheme, 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, unscheduleSelfclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisVisiblepublic void setVisibility(int visibility)
visibility - Visibility state - Visibility2.VISIBLE,
Visibility2.INVISIBLE, or Visibility2.SEMI_VISIBLEpublic boolean setVisible(boolean visible)
VisibilitysetVisible in interface Visibilityvisible - boolean true is visible, false invisible.public int getVisibility()
getVisibility in interface Visibility2