コード例 #1
0
ファイル: MainActivity.cs プロジェクト: wturnerharris/nearest
        /// <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);
            }
        }
コード例 #2
0
ファイル: CircleView.cs プロジェクト: wturnerharris/nearest
 public CircleAngleAnimation(CircleView newCircle, int newAngleValue)
 {
     oldAngle = newCircle.EndAngle;
     newAngle = newAngleValue;
     circle   = newCircle;
 }