Wednesday, February 29, 2012

[android-developers] Re: How to get coordinates of the button programmatically?

AbsoluteLayout is deprecated. If you're using this ViewGroup, then
you're probably 'doing it wrong'. Android UI programming avoids
absolute placement values for components because there are so may
different screen types (resolutions, densities etc).

On Feb 29, 5:27 am, android developer
<android.developer4...@gmail.com> wrote:
> I have one button in an AbsoluteLayout in an XML file. From there I am able
> to set the (x,y) position of the button.
>
> How can I get and set the (x,y) coordinates of the button programmatically?
>
> Thanks all.

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate