why absolutelayout is deprecated? I know that it may cause problems in supporting multiple screens but was better for showing view at particular position.
The absolute layout is less flexible and harder to maintain for varying sizes of screens that's why it is not recommended.
Absolute layouts are less flexible and harder to maintain than other types of layouts without absolute positioning.
RelativeLayout is a view group that displays child views in relative positions. The position of each view can be specified as relative to sibling elements (such as to the left-of or below another view) or in positions relative to the parent RelativeLayout area (such as aligned to the bottom, left or center).
Because absolute positioning is not too much useful in world of various screen resolutions and aspect ratios. You'd usually leave element positioning to be computed by more flexible layouts.
From docs: Absolute layouts are less flexible and harder to maintain than other types of layouts without absolute positioning.
However, if it fits your special purpose, just use it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With