Example #1
0
        private void SetBackGroundColor()
        {
            BackgroundView.Visibility = ViewStates.Visible;
            switch (_holderMove)
            {
            case Moving.Left:
                NoteTextView.Visibility = ViewStates.Invisible;
                TaskTextView.Visibility = ViewStates.Visible;
                BackgroundView.SetBackgroundResource(Android.Resource.Color.HoloBlueDark);
                FrontView.SetBackgroundResource(Resource.Drawable.contact_item_gradient_left);
                break;

            case Moving.Right:
                NoteTextView.Visibility = ViewStates.Visible;
                TaskTextView.Visibility = ViewStates.Invisible;
                BackgroundView.SetBackgroundResource(Android.Resource.Color.HoloRedDark);
                FrontView.SetBackgroundResource(Resource.Drawable.contact_item_gradient_right);
                break;
            }
        }