Rule Definition
An Absolute Layout lets you specify exact locations (x/y coordinates) of its children.
Absolute layouts are less flexible and harder to maintain than other types of layouts without absolute positioning.
Absolut Layout are also Deprecated since API level 3
Remediation
Use FrameLayout, RelativeLayout or a custom layout instead.
Violation Code Sample
public class AbsoluteLayout
extends ViewGroup
java.lang.Object
android.view.View
android.view.ViewGroup
android.widget.AbsoluteLayout
Related Technologies
Technical Criterion
CWE-477 - Use of Obsolete Function
About CAST Appmarq
CAST Appmarq is by far the biggest repository of data about real IT systems. It's built on thousands of analyzed applications, made of 35 different technologies, by over 300 business organizations across major verticals. It provides IT Leaders with factual key analytics to let them know if their applications are on track.