Searched refs:scrim (Results 1 – 3 of 3) sorted by relevance
121 static final int TAG_KEY_ANIM = R.id.scrim;432 private void setOrAdaptCurrentAnimation(View scrim) { in setOrAdaptCurrentAnimation() argument433 if (!isAnimating(scrim)) { in setOrAdaptCurrentAnimation()434 updateScrimColor(scrim, getCurrentScrimAlpha(scrim), getCurrentScrimTint(scrim)); in setOrAdaptCurrentAnimation()436 ValueAnimator previousAnimator = (ValueAnimator) scrim.getTag(TAG_KEY_ANIM); in setOrAdaptCurrentAnimation()437 float alpha = getCurrentScrimAlpha(scrim); in setOrAdaptCurrentAnimation()438 float previousEndValue = (Float) scrim.getTag(TAG_END_ALPHA); in setOrAdaptCurrentAnimation()439 float previousStartValue = (Float) scrim.getTag(TAG_START_ALPHA); in setOrAdaptCurrentAnimation()442 scrim.setTag(TAG_START_ALPHA, newStartValue); in setOrAdaptCurrentAnimation()443 scrim.setTag(TAG_END_ALPHA, alpha); in setOrAdaptCurrentAnimation()[all …]
258 public void updateScrimColor(ScrimView scrim, float alpha, int tint) { in updateScrimColor() argument260 scrim == mScrimInFront ? "front_scrim_alpha" : "back_scrim_alpha", in updateScrimColor()264 scrim == mScrimInFront ? "front_scrim_tint" : "back_scrim_tint", in updateScrimColor()267 scrim.setTint(tint); in updateScrimColor()268 scrim.setViewAlpha(alpha); in updateScrimColor()
88 mScrim = v.findViewById(R.id.scrim); in onCreateContentView()