I want o be able to add items to my layout, and set the exact position of these items. x,y,wid开发者_高级运维th,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().
You can use RelativeLayout and set margins to position. This is going to kill various screen size compatibility.
精彩评论