If you are working in a view you can hand draw the object by overriding OnDraw. You could also try creating layout params and setting the left and top margin to be the x, y where you want the object to be then add your widget to your layout using the addView (view, params) call.
On Dec 10, 1:28 am, sheng wang <[email protected]> wrote: > Hi, > > Since the absolutelayout is deprecated, how to put a widget (suck as a > button) on arbitary (X,Y) > > thx -- 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

