public virtual void onAttach() { isAttached = true; ViewCompat.postOnAnimation(target, () => { if (isAttached) { target.invalidate(); ViewCompat.postOnAnimation(target, this); } }); }