Kritzli wrote: > I'm still stuck on this problem. I tried to solve it by making the > whole activity dynamic. But still the button is positioned at top > left. > I can't see why > > ok.layout(k.getLeft(), k.getTop(), k.getRight(),k.getBottom()); > > isn't repositioning the button, even if it shows the right Values on > LogCat. > > I really need some help on that !
Moving a widget requires altering the layout rules that control where the widget is, via the appropriate *.LayoutParams object. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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