1

How to fire onDraw when scrolling

view story
linux-howto

http://stackoverflow.com – I have a scrolled custom view of huge dimension. When I scroll in the emulator (android 4.1.2) onDraw() method is calling. In this last method I update the left and the top edge by getScrollX() and getScrollY() methods and I draw only the displayed part of my view. this gives a good scrolling performance. But in a Galaxy Tab 2 device, onDraw method is not fired by scrolling and I have an "OpenGLRenderer: Shape rect too large to be rendered into a texture" Logcat message. Where should I update the left and the top edge of the displayed part of my view? and how firing onDraw when scrolling? t (HowTos)