public class CheckedImageView extends ImageView implements android.widget.Checkable
mCurrentStyle, mStyleId| Constructor and Description |
|---|
CheckedImageView(android.content.Context context) |
CheckedImageView(android.content.Context context,
android.util.AttributeSet attrs) |
CheckedImageView(android.content.Context context,
android.util.AttributeSet attrs,
int defStyleAttr) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isChecked() |
int[] |
onCreateDrawableState(int extraSpace) |
void |
setChecked(boolean b) |
void |
toggle() |
applyStyle, applyStyle, getRippleManager, init, onAttachedToWindow, onDetachedFromWindow, onThemeChanged, onTouchEvent, setBackgroundDrawable, setOnClickListenerpublic CheckedImageView(android.content.Context context)
public CheckedImageView(android.content.Context context,
android.util.AttributeSet attrs)
public CheckedImageView(android.content.Context context,
android.util.AttributeSet attrs,
int defStyleAttr)
public void setChecked(boolean b)
setChecked in interface android.widget.Checkablepublic boolean isChecked()
isChecked in interface android.widget.Checkablepublic void toggle()
toggle in interface android.widget.Checkablepublic int[] onCreateDrawableState(int extraSpace)