"... to call removeAllViews() on the RelativeLayout and simply rebuild all of its child widgets in the desired order..."
when i called them? when I click the button? hmm..do you have any tutorial or sample for this one? couse i'm a newbie in android developer ^^ thanks On May 3, 3:34 pm, "Jason Teagle" <[email protected]> wrote: > >when i click the Button "Top", the image position will change to the > >top of screen, but when click the Button "bottom", image change to the > >bottom of screen. > > >is there any idea how to do that? Using the relative layout > > Changing the rules on widgets after the initial layout doesn't seem to quite > work correctly, even if you build a new LayoutParams object, add any > replacement rules and call requestLayout(). > > The only way to make it work for me, therefore, is to call removeAllViews() > on the RelativeLayout and simply rebuild all of its child widgets in the > desired order. As long as you don't have a very complex layout it doesn't > generate unsightly flicker. -- 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

