You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I recently updated my support.v4 (rev. 18) library and used an SGS3 to run an application using your lib.
I found out that in this particular case the background image was showing incorrectly.
I found the bug: the getWidth() and getHeight() are returning different values comparing to the canvas.getWidth() and canvas.getHeight() (I don't know why yet but...)
My fix was to change the destination rect in the onDraw to:
dst.set((int) (getScrollX()), 0,
(int) (getScrollX() + getWidth()), getHeight());
this fixed the bug on the SGS3 and all previous Android versions and device screens were running OK too.
Hope you take a look.
The text was updated successfully, but these errors were encountered:
My only concern is if this is something that is different for some reason between different platforms or different versions of Android. I'll try to look up some information about this. Thanks for pointing this out!
Hi,
I recently updated my support.v4 (rev. 18) library and used an SGS3 to run an application using your lib.
I found out that in this particular case the background image was showing incorrectly.
I found the bug: the getWidth() and getHeight() are returning different values comparing to the canvas.getWidth() and canvas.getHeight() (I don't know why yet but...)
My fix was to change the destination rect in the onDraw to:
dst.set((int) (getScrollX()), 0,
(int) (getScrollX() + getWidth()), getHeight());
this fixed the bug on the SGS3 and all previous Android versions and device screens were running OK too.
Hope you take a look.
The text was updated successfully, but these errors were encountered: