I'm pretty sure the update code is getting called. But possibility
number two seems likely. I'll look into that.

By the way, Mark, I'm in San Francisco. Are you here in town for the
CTIA show this week?

On Oct 3, 10:38 am, Mark Murphy <[email protected]> wrote:
> It should happen automatically. You should not even need the
> invalidate() call. A couple of possibilities:
>
> -- Your update code is not being called
>
> -- Your update code is updating the wrong widgets (e.g., for a
> previous instance of the activity that was destroyed and recreated for
> a configuration change, like a rotation)
>
> On Sun, Oct 3, 2010 at 1:32 PM, Bret 
> Foremanbegin_of_the_skype_highlighting     end_of_the_skype_highlighting<[email protected]>
>  wrote:
> > I have a set of views that are populated with data from an online
> > database. The context menu has a "refresh" choice that re-reads the
> > online database and updates some attributes of the views, like setText
> > and setChecked for some buttons. After the various setTexts and such,
> > I invalidate the Views. However, they are not immediately redrawn. In
> > fact, they don't get redrawn at all unless something like a rotation
> > happens to cause a redraw of the screen. How can I initiate an
> > immediate redraw after the refresh is complete?
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
> Available!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to