public interface IAlphaViewHelper
| Modifier and Type | Method and Description |
|---|---|
void |
onEnabledChanged(android.view.View current,
boolean enabled)
处理setEnabled
|
void |
onPressedChanged(android.view.View current,
boolean pressed)
处理setPressed
|
void |
setChangeAlphaWhenDisable(boolean changeAlphaWhenDisable)
设置是否要在 disabled 时改变透明度
|
void |
setChangeAlphaWhenPress(boolean changeAlphaWhenPress)
设置是否要在 press 时改变透明度
|
void onPressedChanged(android.view.View current,
boolean pressed)
current - 当前的viewpressed - 是否触摸void onEnabledChanged(android.view.View current,
boolean enabled)
current - 当前的viewenabled - 是否可用void setChangeAlphaWhenPress(boolean changeAlphaWhenPress)
changeAlphaWhenPress - 是否要在 press 时改变透明度void setChangeAlphaWhenDisable(boolean changeAlphaWhenDisable)
changeAlphaWhenDisable - 是否要在 disabled 时改变透明度