public class ViewFocusAnimator extends Object implements View.OnFocusChangeListener
Modifier and Type | Field and Description |
---|---|
protected TaskCardView |
mTargetView |
Constructor and Description |
---|
ViewFocusAnimator(TaskCardView view) |
Modifier and Type | Method and Description |
---|---|
void |
changeSize(boolean hasFocus)
Changes the size of the
TaskCardView to show its focused state. |
void |
onFocusChange(View v,
boolean hasFocus)
Called when the focus state of a view has changed.
|
protected TaskCardView mTargetView
public ViewFocusAnimator(TaskCardView view)
public void onFocusChange(View v, boolean hasFocus)
View.OnFocusChangeListener
onFocusChange
in interface View.OnFocusChangeListener
v
- The view whose state has changed.hasFocus
- The new focus state of v.public void changeSize(boolean hasFocus)
TaskCardView
to show its focused state.