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