private void ShowMap([DrawableRes] int resId)
        {
            _decodeMapBitmapTask?.Cancel(true);

            var w = _mapSwitcher.Width;
            var h = _mapSwitcher.Height;

            _decodeMapBitmapTask = new DecodeBitmapTask(Resources, resId, w, h, _mapLoadListener);
            _decodeMapBitmapTask.Execute();
        }
        private void LoadFullSizeBitmap(int smallResId)
        {
            var bigResId = smallResId switch
            {
                R.Drawable.p1 => R.Drawable.p1_big,
                R.Drawable.p2 => R.Drawable.p2_big,
                R.Drawable.p3 => R.Drawable.p3_big,
                R.Drawable.p4 => R.Drawable.p4_big,
                R.Drawable.p5 => R.Drawable.p5_big,
                _ => R.Drawable.p1_big
            };

            var metrics = new DisplayMetrics();

            WindowManager.DefaultDisplay.GetRealMetrics(metrics);

            var w = metrics.WidthPixels;
            var h = metrics.HeightPixels;

            _decodeBitmapTask = new DecodeBitmapTask(Resources, bigResId, w, h, this);
            _decodeBitmapTask.Execute();
        }
 private void LoadBitmap([DrawableRes] int resId)
 {
     _task = new DecodeBitmapTask(ItemView.Resources, resId, _viewWidth, _viewHeight, this);
     _task.Execute();
 }