protected override void OnResume() { base.OnResume(); _currentImageView = FindViewById <ImageView>(Resource.Id.imageView1); _nextImageView = FindViewById <ImageView>(Resource.Id.imageView2); _nextImageIndex = 0; ImageLoader.LoadImage(_images[_nextImageIndex], _currentImageView); _nextImageIndex++; ImageLoader.LoadImage(_images[_nextImageIndex], _nextImageView); _nextImageIndex++; _listener = new AnimationListener(null, null, SwitchPositions); _timer = new System.Timers.Timer { Interval = 3000 }; _timer.Elapsed += OnTimedEvent; _timer.Enabled = true; }
protected override void OnDestroy() { base.OnDestroy(); _timer = null; _listener = null; _animator = null; _currentImageView = null; _nextImageView = null; _images = null; }