6

In iOS I can do a call like

self.layer.shouldRasterize = YES;

Is there anything similar in Android in terms of rasterizing views and therefore not getting onDraw() being called consistently?

I would like to prevent views from being drawn over and over again in a RecyclerView to save memory and optimized for faster scrolling.

Fattie
  • 27,874
  • 70
  • 431
  • 719
AndyRoid
  • 5,062
  • 8
  • 38
  • 73

0 Answers0