aryaxt
aryaxt

Reputation: 77596

Android ==> Which layout should i use?

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().

Upvotes: 0

Views: 574

Answers (1)

ognian
ognian

Reputation: 11541

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

Upvotes: 1

Related Questions