Revisions for "How to pass information about the scale and translation of a bitmap in an imageView into another activity"

How to pass information about the scale and translation of an imageView into another activity

I use an imageView that users can scale and transform. I then pass the bitmap to another activity using an instance class.

I want the transformation and scaling of the image in the second activity to be the same as the transformation and scaling of the first activity. I currently use getImageMatrix() in the first activity and pass the matrix information into my singleton class. In my next activity I use setImageMatrix(), which I hoped would be able to restore the transformation and scaling of the original image. What I find is that the image in the second activity gets scaled to fit inside of the container and is centered.

I am using android:scaleType="matrix" in the layout.

How to pass information about the scale and translation of a bitmap in an imageView into another activity
I use an imageView that users can scale and transform. I then pass the bitmap to another activity using an instance class. I want the transformation and scaling of the image in the second activity to be the same as the transformation and scaling of the first activity. I currently use getImageMatrix() in the first activity and pass the matrix information into my singleton class. In my next activity I use setImageMatrix(), which I hoped would be able to restore the transformation and scaling of the original image. What I find is that the image in the second activity gets scaled to fit inside of the container and is centered. I am using android:scaleType="matrix" in the layout.
Back to question