Wednesday, February 29, 2012

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

AbsoluteLayout.addView(View, new
AbsoluteLayout.LayoutParams(LayoutParams.WRAP_CONTENT,
LayoutParams.WRAP_CONTENT, int x, int y));

On 29 Лют, 07:27, 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

No comments:

Post a Comment