Custom View - Avoid redrawing when non-interactive
Posted
by MasterGaurav
on Stack Overflow
See other posts from Stack Overflow
or by MasterGaurav
Published on 2010-05-04T10:29:31Z
Indexed on
2010/05/18
5:20 UTC
Read the original article
Hit count: 365
I have a complex custom view - photo collage.
What is observed is whenever any UI interaction happens, the view is redrawn.
How can I avoid complete redrawing (for example, use a cached UI) of the view specially when I click the "back" button to go back to previous activity because that also causes redrawing of the view.
While exploring the API and web, I found a method - getDrawingCache()
- but don't know how to use it effectively.
How do I use it effectively?
I've had other issues with Custom Views that I outline here.
© Stack Overflow or respective owner