PhotoViewerTest.Droid.PhotoViewDroidAttacher.Update C# (CSharp) Method

Update() public method

public Update ( ) : void
return void
        public void Update()
        {
            ImageView imageView = GetImageView();

            if (null != imageView) {
                if (mZoomEnabled) {
                    // Make sure we using MATRIX Scale Type
                    SetImageViewScaleTypeMatrix(imageView);

                    // Update the base matrix using the current drawable
                    UpdateBaseMatrix(imageView.Drawable);
                } else {
                    // Reset the Matrix...
                    ResetMatrix();
                }
            }
        }

Usage Example

コード例 #1
0
 public override void SetImageDrawable(Android.Graphics.Drawables.Drawable drawable)
 {
     base.SetImageDrawable(drawable);
     if (null != mAttacher)
     {
         mAttacher.Update();
     }
 }