Searched refs:scrim (Results 1 – 3 of 3) sorted by relevance
106 static final int TAG_KEY_ANIM = R.id.scrim;382 private void setOrAdaptCurrentAnimation(View scrim) { in setOrAdaptCurrentAnimation() argument383 if (!isAnimating(scrim)) { in setOrAdaptCurrentAnimation()384 updateScrimColor(scrim, getCurrentScrimAlpha(scrim), getCurrentScrimTint(scrim)); in setOrAdaptCurrentAnimation()386 ValueAnimator previousAnimator = (ValueAnimator) scrim.getTag(TAG_KEY_ANIM); in setOrAdaptCurrentAnimation()387 float alpha = getCurrentScrimAlpha(scrim); in setOrAdaptCurrentAnimation()388 float previousEndValue = (Float) scrim.getTag(TAG_END_ALPHA); in setOrAdaptCurrentAnimation()389 float previousStartValue = (Float) scrim.getTag(TAG_START_ALPHA); in setOrAdaptCurrentAnimation()392 scrim.setTag(TAG_START_ALPHA, newStartValue); in setOrAdaptCurrentAnimation()393 scrim.setTag(TAG_END_ALPHA, alpha); in setOrAdaptCurrentAnimation()[all …]
227 public void updateScrimColor(ScrimView scrim, float alpha, int tint) { in updateScrimColor() argument229 scrim == mScrimInFront ? "front_scrim_alpha" : "back_scrim_alpha", in updateScrimColor()233 scrim == mScrimInFront ? "front_scrim_tint" : "back_scrim_tint", in updateScrimColor()236 scrim.setTint(tint); in updateScrimColor()237 scrim.setViewAlpha(alpha); in updateScrimColor()
88 mScrim = v.findViewById(R.id.scrim); in onCreateContentView()