Allow a callback when the view is ready #66

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
3 participants
@singpolyma
Contributor

singpolyma commented Feb 28, 2014

Allows for setting initial zoom and pan safely, otherwise bad things
happen if the drawable hasn't quite loaded yet.

Closes #64

Allow a callback when the view is ready
Allows for setting initial zoom and pan safely, otherwise bad things
happen if the drawable hasn't quite loaded yet.
@MikeOrtiz

This comment has been minimized.

Show comment
Hide comment
@MikeOrtiz

MikeOrtiz Mar 12, 2014

Owner

I decided not to use a callback, but rather to fix setZoom so that it will be called again with the proper zoom variables during onDraw. You can find my solution here: c20a532.

Owner

MikeOrtiz commented Mar 12, 2014

I decided not to use a callback, but rather to fix setZoom so that it will be called again with the proper zoom variables during onDraw. You can find my solution here: c20a532.

@MikeOrtiz MikeOrtiz closed this Mar 12, 2014

@iori57

This comment has been minimized.

Show comment
Hide comment
@iori57

iori57 Sep 25, 2016

I am having the same issue. Delaying the setZoom to be called during onDraw doesn't work. Instead I tried manually calling setZoom after a delay of 100ms and it works.

This is especially true when my Activity shows the on screen keyboard automatically, causing onDraw to be called up to 5 times when it renders the layout.

iori57 commented Sep 25, 2016

I am having the same issue. Delaying the setZoom to be called during onDraw doesn't work. Instead I tried manually calling setZoom after a delay of 100ms and it works.

This is especially true when my Activity shows the on screen keyboard automatically, causing onDraw to be called up to 5 times when it renders the layout.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment