/* * Enabled aggressive block sorting */ private void dimChildView(View object, float f, int n) { LayoutParams layoutParams = (LayoutParams)object.getLayoutParams(); if (f > 0.0f && n != 0) { int n2 = (int)((float)((-16777216 & n) >>> 24) * f); if (layoutParams.dimPaint == null) { layoutParams.dimPaint = new Paint(); } layoutParams.dimPaint.setColorFilter(new PorterDuffColorFilter(n2 << 24 | 16777215 & n, PorterDuff.Mode.SRC_OVER)); if (ViewCompat.getLayerType((View)object) != 2) { ViewCompat.setLayerType((View)object, 2, layoutParams.dimPaint); } this.invalidateChildRegion((View)object); return; } else { if (ViewCompat.getLayerType((View)object) == 0) return; { if (layoutParams.dimPaint != null) { layoutParams.dimPaint.setColorFilter(null); } object = new DisableLayerRunnable((View)object); this.mPostedRunnables.add((DisableLayerRunnable)object); ViewCompat.postOnAnimation(this, (Runnable)object); return; } } }
public void withLayer(ViewPropertyAnimatorCompat viewpropertyanimatorcompat, View view) { viewpropertyanimatorcompat.mOldLayerType = ViewCompat.getLayerType(view); ViewPropertyAnimatorCompatICS.setListener( view, viewpropertyanimatorcompat.new MyVpaListener()); }
@Override public void withLayer(ViewPropertyAnimatorCompat vpa, View view) { vpa.mOldLayerType = ViewCompat.getLayerType(view); ViewPropertyAnimatorCompatICS.setListener(view, new MyVpaListener(vpa)); }