Relative layouts are a type of layout where the position of an object is relative to the position of another object. This is in contrast to absolute layouts, where the position of objects are specified in pixels or other units relative to a fixed coordinate system.
The advantages of using a relative layout include:
- It's easier for designers and developers to work with, as they only need to know about one coordinate system which is based on the parent container instead of being based on pixels or other units.
- It's easier for designers and developers because they don't have to worry about calculating coordinates from scratch.
Share a personalized message with your friends.