public static Effect creator(int which) {
        if (which == TOUCH_EFFECT_AUTO)
            return (new AutoEffect());
        else if (which == TOUCH_EFFECT_EASE)
            return (new EaseEffect());
        else if (which == TOUCH_EFFECT_PRESS)
            return (new PressEffect());
        else if (which == TOUCH_EFFECT_RIPPLE)
            return (new RippleEffect());
        else
            return null;
    }
This is TouchEffectDrawable draw {@link Effect }'s EffectFactory
caprice/ui/src/main/java/net/qiujuer/genius/ui/drawable/effect/EffectFactory.java