/** * @param prio The animation priority. When added with the general animation priority of the layout the animation will * be done if the resulting value is > 0. * @param durMillis Duration in milliseconds. <=0 means default value should be used and > 0 is the number of millis * @param easeIn 0 is linear (no ease). 1 is max ease. Always clamped between these values. * @param easeOut 0 is linear (no ease). 1 is max ease. Always clamped between these values. */ public AnimSpec(int prio, int durMillis, float easeIn, float easeOut) { this.prio = prio; this.durMillis = durMillis; this.easeIn = LayoutUtil.clamp(easeIn, 0, 1); this.easeOut = LayoutUtil.clamp(easeOut, 0, 1); }