Class AnimSpec

    • Field Detail

    • Constructor Detail

      • AnimSpec

        public AnimSpec​(int prio,
                        int durMillis,
                        float easeIn,
                        float easeOut)
        Parameters:
        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.
        durMillis - Duration in milliseconds. <=0 means default value should be used and > 0 is the number of millis
        easeIn - 0 is linear (no ease). 1 is max ease. Always clamped between these values.
        easeOut - 0 is linear (no ease). 1 is max ease. Always clamped between these values.
    • Method Detail

      • getPriority

        public int getPriority()
        Returns:
        The animation priority. When added with the general animation priority of the layout the animation will be done if the resulting value is > 0.
      • getDurationMillis

        public int getDurationMillis​(int defMillis)
        Parameters:
        defMillis - Default used if the millis in the spec is set to "default".
        Returns:
        Duration in milliseconds. <=0 means default value should be used and > 0 is the number of millis
      • getDurationMillis

        public int getDurationMillis()
        Returns:
        Duration in milliseconds. <= 0 means default value should be used and > 0 is the number of millis
      • getEaseIn

        public float getEaseIn()
        Returns:
        A value between 0 and 1 where 0 is no ease in and 1 is maximum ease in.
      • getEaseOut

        public float getEaseOut()
        Returns:
        A value between 0 and 1 where 0 is no ease out and 1 is maximum ease out.