Lines Matching refs:theme

98      * @param theme The theme
104 public static Animator loadAnimator(Resources resources, Theme theme, int id)
106 return loadAnimator(resources, theme, id, 1);
110 public static Animator loadAnimator(Resources resources, Theme theme, int id,
114 Animator animator = animatorCache.getInstance(id, resources, theme);
126 animator = createAnimatorFromXml(resources, theme, parser, pathErrorScale);
134 animatorCache.put(id, theme, constantState);
136 animator = constantState.newInstance(resources, theme);
162 final Theme theme = context.getTheme();
163 StateListAnimator animator = cache.getInstance(id, resources, theme);
176 cache.put(id, theme, constantState);
178 animator = constantState.newInstance(resources, theme);
639 private static Animator createAnimatorFromXml(Resources res, Theme theme, XmlPullParser parser,
642 return createAnimatorFromXml(res, theme, parser, Xml.asAttributeSet(parser), null, 0,
646 private static Animator createAnimatorFromXml(Resources res, Theme theme, XmlPullParser parser,
667 anim = loadObjectAnimator(res, theme, attrs, pixelSize);
669 anim = loadAnimator(res, theme, attrs, null, pixelSize);
673 if (theme != null) {
674 a = theme.obtainStyledAttributes(attrs, R.styleable.AnimatorSet, 0, 0);
680 createAnimatorFromXml(res, theme, parser, attrs, (AnimatorSet) anim, ordering,
684 PropertyValuesHolder[] values = loadValues(res, theme, parser,
716 private static PropertyValuesHolder[] loadValues(Resources res, Theme theme,
733 if (theme != null) {
734 a = theme.obtainStyledAttributes(attrs, R.styleable.PropertyValuesHolder, 0, 0);
742 PropertyValuesHolder pvh = loadPvh(res, theme, parser, propertyName, valueType);
774 private static int inferValueTypeOfKeyframe(Resources res, Theme theme, AttributeSet attrs) {
777 if (theme != null) {
778 a = theme.obtainStyledAttributes(attrs, R.styleable.Keyframe, 0, 0);
830 private static PropertyValuesHolder loadPvh(Resources res, Theme theme, XmlPullParser parser,
843 valueType = inferValueTypeOfKeyframe(res, theme, Xml.asAttributeSet(parser));
845 Keyframe keyframe = loadKeyframe(res, theme, Xml.asAttributeSet(parser), valueType);
953 private static Keyframe loadKeyframe(Resources res, Theme theme, AttributeSet attrs,
958 if (theme != null) {
959 a = theme.obtainStyledAttributes(attrs, R.styleable.Keyframe, 0, 0);
999 final Interpolator interpolator = AnimationUtils.loadInterpolator(res, theme, resID);
1007 private static ObjectAnimator loadObjectAnimator(Resources res, Theme theme, AttributeSet attrs,
1011 loadAnimator(res, theme, attrs, anim, pathErrorScale);
1025 private static ValueAnimator loadAnimator(Resources res, Theme theme,
1031 if (theme != null) {
1032 arrayAnimator = theme.obtainStyledAttributes(attrs, R.styleable.Animator, 0, 0);
1039 if (theme != null) {
1040 arrayObjectAnimator = theme.obtainStyledAttributes(attrs,
1057 final Interpolator interpolator = AnimationUtils.loadInterpolator(res, theme, resID);