[안드로이드 스튜디오] 컨스트레인트 레이아웃 설정 오류
문제
Missing Constraints in ConstraintLayout
This view is not constrained.
It only has designtime positions, so it will jump to (0,0) at runtime unless you add the constraints
The layout editor allows you to place widgets anywhere on the canvas, and it records the current position with designtime attributes (such as layout_editor_absoluteX).
These attributes are not applied at runtime, so if you push your layout on a device, the widgets may appear in a different location than shown in the editor.
To fix this, make sure a widget has both horizontal and vertical constraints by dragging from the edge connections.
Issue id: MissingConstraints
Vendor: Android Open Source Project Contact: https://groups.google.com/g/lint-dev
Feedback: https://issuetracker.google.com/issues/new?component=192708
해결 방법
참고
반응형