<TextView android:text="TextView1"
        android:id="@+id/textView1" 
        android:layout_width="wrap_content"
        android:layout_height="wrap_content">
        </TextView>
    
         <TextView android:text="TextView2"
         android:id="@+id/textView1"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content">
         </TextView>

레이아웃 내에 위와 같이 텍스트 뷰를 배치하고  ID 를 똑같이 부여하는 경우에 왜 XML 상에서 에러로 보지 않을까요?

물론 코드에서 ((TextView)findViewById(R.id.textView1)).setText("어떤값이 변할까?");

라고 하는 경우에  먼저 선언된 TextView1 의  text 가 "어떤값이 변할까?" 라는 문자열로 세팅됩니다.

왜 중복으로 처리하지 않을까요??