Wednesday, January 9, 2013

[android-developers] invalidate() -> repaint?

I made a custom View… basically my own button type that resides in a ListView.

I want it to change it's appearance on touch.  So, in the touch listener, I call invalidate().

Is this right?

It seems to repaint maybe half the time.

To get it to work fully, I had to also call invalidate() on the ListView that it resides in… which feels wrong.

Any ideas?




--
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

No comments:

Post a Comment