Saturday, January 2, 2010

[android-developers] when is onDraw called, how to force it?

I am working on a custom view which has text in it. I have a touch
even that opens a dialog to change the text but after the text is
updated in memory it still doesn't update in my view until I touch the
screen again. I am calling invalidate() in my function to update the
value of the text. To try to help clarify what is going on a little
better I put a log entry in the onDraw override saying that it has
been drawn and it seems completely random, I have 4 views in my
activity and when I touch one on the screen some of them are redrawn
and others are not. Can anyone offer any insight as to what is
happening?

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate