android - OpenGLRenderer trying to scale down bitmap - when reaching end of ViewPager -


app has viewpager several fragment in it.

when user scrolls end of pages, there's android gradient effect indicates there's no more pages (instead of ios's bounce effect).

when effect occurs, apps become unresponsive , frames dropped, while in log there these lines -

trying scale down bitmap texture (2560x4544 -> 2307x4096) scaled bitmap has been created 

there's no bitmap in app of size , it's running on qhd (1440 x 2560 pixels) lg g3 display, guess bitmap scaled fit xxxhdpi resolution, reason scaled down bit.

question - why trying scale down bitmap when effect occurs? can avoided?

is gradient effect rendering being scaled down?

it stopped when turned off on scroll effect (ios's bounce equivalent). maybe effect image that's resized before shown, though don't understand why don't cache it, if it's true.

viewpager.setoverscrollmode(view.over_scroll_never); 

Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -

django - CSRF verification failed. Request aborted. CSRF cookie not set -