Mark Murphy <mmur...@commonsware.com> wrote: > Mihai Fonoage wrote: > > and I need to deal with > > this case specifically, which complicates my application logic a > > little (here though it is probably my fault - not a perfect design). > > Your View should not care about how many times it is drawn. Relying on > assumed behavior (e.g., onDraw() is only called in certain scenarios) is > not safe. Otherwise, your code may break in future Android releases > where your assumption is no longer valid. > > You are certainly welcome to figure out how to avoid onDraw() > unnecessarily, but you really need to implement support for onDraw() > occurring when you are not necessarily expecting it.
That is what I ended up doing. I just found everything to be curious to say the least. Thank you all for the feedback! Mihai Fonoage --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---