Пример #1
0
        private void PauseWorkoutImageViewClick(object sender, EventArgs e)
        {
            if (isPaused)
            {
                _manager.RestartWorkout();
                _pauseWorkoutImageView.SetBackgroundResource(Resource.Drawable.ic_pauseWork);
                _mainLayout.SetBackgroundColor(Color.ParseColor(currentBackgroundColor));
                isPaused = !isPaused;
            }
            else
            {
                _manager.PauseWorkout();
                _mainLayout.SetBackgroundColor(Color.ParseColor("#89827a"));

                //Bitmap bitmap = BitmapFactory.DecodeResource(Resources, Resource.Drawable.ic_startWork);
                // Bitmap b = Bitmap.CreateScaledBitmap(bitmap,)
                _pauseWorkoutImageView.SetBackgroundResource(Resource.Drawable.ic_startWork);
                isPaused = !isPaused;
            }
        }