tags:

views:

32

answers:

1

I want o be able to add items to my layout, and set the exact position of these items. x,y,width,height. I am currently using AbsoluteLaout which is deprecated, is there any other layout that allows me to locate objects on the screen, by specifying their x,y? I also need to be able to read the x,y of all these objects on the screen. I already use getLeft(), and getTop().

A: 

Hi,

You can use RelativeLayout and set margins to position. This is going to kill various screen size compatibility.

ognian