지금까지 개발 할 때

list.xml에서 title 라는 id를 줄때는 android:id="@+id/list_title"

view.xml에서 title 라는 id를 줄때는 android:id="@+id/view_title"

로 이름을 줬었습니다.

그런데 다른 예제들 보니 다들 동일하게 아래와 같이 id로 주는 경우도 있고 문제 없이 동작하더군요.

list.xml에서 title 라는 id를 줄때는 android:id="@+id/title"

view.xml에서 title 라는 id를 줄때는 android:id="@+id/title"

이렇게해도 관계가 없는건가요?

제 생각에는 결국은 R.id.title 에서 int 값으로 받기때문에 문제가 생길 것 같은데...


고맙습니다. 행복하세요.