tags:

views:

30

answers:

1

I have a button in an AbsoluteLayout and I want to change the X and Y position on screen programmatically.

How do i it?

+1  A: 

First of all you you need to find or add button on view.

And after that you need to set AbsoluteLayout like

btn.setLayoutParams(new LayoutParams(width, height, x, y))
Nishant Shah