본문 바로가기

IT_Story/안드로이드

Android xml 에서 @+id, @id 차이?

기초적인 건데..

Android xml에서relative나 constraintLayout을 이용할 때,

위치 지정을 할 때 '@id/button' 을 지정해주는 경우가 많은데.

 

@+id : 새로 추가되는 리소스 아이디.

@id : 이미 추가된 리소스 아이디.

 

간단함.