/// <summary> /// Sets the trains notice. /// </summary> /// <param name="button">Button.</param> /// <param name="time">Time.</param> public void SetTrainsNotice(CircleView button, TextView time) { button.Text = GetString(Resource.String.error_train_line); button.SetBackgroundResource(GetTrainColorDrawable("")); var Rotation = Animations.AnimationUtils.LoadAnimation(this, Resource.Animation.rotate); Rotation.RepeatCount = Animations.Animation.Infinite; Rotation.RepeatMode = Animations.RepeatMode.Restart; button.StartAnimation(Rotation); if (time != null) { time.Text = GetString(Resource.String.error_train_time); } }
public CircleAngleAnimation(CircleView newCircle, int newAngleValue) { oldAngle = newCircle.EndAngle; newAngle = newAngleValue; circle = newCircle; }