animate the now playing bar width changes

This commit is contained in:
yugecin
2018-07-01 22:49:42 +02:00
parent 45e1438d4e
commit 7c763f4f66
2 changed files with 43 additions and 8 deletions

View File

@@ -57,6 +57,26 @@ public class AnimatedValue {
this.diff = max - min;
this.eqn = eqn;
}
/**
* Change the from and to values
* @param min start value
* @param max end value
*/
public void setValues(float min, float max) {
this.base = min;
this.value = min;
this.diff = max - min;
this.setTime(0);
}
/**
* Gets the max (end) value
* @return the max (end) value
*/
public float getMax() {
return this.base + this.diff;
}
/**
* Returns the current value.