private void ResetAnimation() { SetBackGroundColor(); Animation alphaAnim2 = new AlphaAnimation(0, 1); alphaAnim2.Duration = 300; BackgroundView.StartAnimation(alphaAnim2); }
public void UnSelectedHolderSwipe() { Animation alphaAnim = new AlphaAnimation(1, 0); alphaAnim.Duration = 300; alphaAnim.AnimationEnd += (sender, args) => { BackgroundView.Visibility = ViewStates.Gone; }; BackgroundView.StartAnimation(alphaAnim); }
private void SwitchColorBackGround() { Animation alphaAnim1 = new AlphaAnimation(1, 0); alphaAnim1.Duration = 300; alphaAnim1.AnimationEnd += (sender, args) => { ResetAnimation(); }; BackgroundView.StartAnimation(alphaAnim1); }