Re: [android-developers] How can I cause a RelativeLayout to re-layout it's children?

2010-12-28 Thread Mark Murphy
Try calling invalidate() on the RelativeLayout. On Mon, Dec 27, 2010 at 8:54 PM, John Lussmyer johnlussm...@gmail.com wrote: I have a RelativeLayout with children.  After a while, I want to change the size of one child - which should cause at least one other to move. I can change the childs

Re: [android-developers] How can I cause a RelativeLayout to re-layout it's children?

2010-12-28 Thread John Lussmyer
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.comwrote: Try calling

Re: [android-developers] How can I cause a RelativeLayout to re-layout it's children?

2010-12-28 Thread Dianne Hackborn
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()