invalidate() just causes the views to be redrawn:
http://developer.android.com/reference/android/view/View.html#invalidate()

requestLayout() asks that the views go through a new measure/layout pass
(and then redraw):
http://developer.android.com/reference/android/view/View.html#requestLayout()

These are also covered in the overview documentation of View, in the Layout
and Drawing sections:
http://developer.android.com/reference/android/view/View.html
 <http://developer.android.com/reference/android/view/View.html>
On Tue, Dec 28, 2010 at 7:27 AM, John Lussmyer <johnlussm...@gmail.com>wrote:

> As I mentioned near the start of this thread, I had already tried that.  It
> doesn't always work.  The layout would only display the update after doing
> something else in the app (like clicking another button).
>
>
> On Tue, Dec 28, 2010 at 2:23 AM, Mark Murphy <mmur...@commonsware.com>wrote:
>
>> Try calling invalidate() on the RelativeLayout.
>>
>>  --
> 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<android-developers%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

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

Reply via email to