public class VisibilityDrawable extends ThreeStateDrawable implements Visibility2
_alpha, _colorFilter, _offIcon, _onIcon, _semiIcon, _state, OFF, ON, SEMI
INVISIBLE, 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, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isVisible
public void setVisibility(int visibility)
visibility
- Visibility state - Visibility2.VISIBLE
,
Visibility2.INVISIBLE
, or Visibility2.SEMI_VISIBLE
public boolean setVisible(boolean visible)
Visibility
setVisible
in interface Visibility
visible
- boolean true is visible, false invisible.public int getVisibility()
getVisibility
in interface Visibility2