Android(Kotlin)

[Android] This view is not constrained. It only has designtime positions, so it will jump to (0,0) at runtime unless you add the constraints

mswait 2022. 2. 23. 16:06

증상

 

에뮬레이터를 실행하면 레이아웃의 디자인탭과는 다르게 자꾸 좌측 최상단으로 뷰가 이동함.

에러메세지

This view is not constrained. It only has designtime positions, so it will jump to (0,0) at runtime unless you add the constraints

해결

 

우측 의 Constraint Widget으로 자리를 지정해주면 됨. 파란색 플러스 버튼 클릭하면 해결