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

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

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

2012-02-28 Thread MOHANAKRISHNAN
in xml or java?


On Wed, Feb 29, 2012 at 10:57 AM, android developer
 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+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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


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

2012-02-28 Thread MOHANAKRISHNAN
in xml means use following code
 android:layout_x="20dp"
android:layout_y="284dp"

On Wed, Feb 29, 2012 at 11:38 AM, MOHANAKRISHNAN  wrote:
> in xml or java?
>
>
> On Wed, Feb 29, 2012 at 10:57 AM, android developer
>  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+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en

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