name1 [Android] 안드로이드 android:tag android:name android:id 차이 개요 안드로이드 개발 시 사용할 수 있는 속성 android:tag android:name android:id 세 가지의 차이를 알아보겠습니다. 속성 별 사용 권장되는 상황이 다릅니다. android:id액티비티 메소드에서 활용합니다. Button myButton = (Button) findViewById(R.id.my_button); android:tagid를 보조하거나, 가변적인 객체 리스트에서 활용합니다. 일반적인 상황에선 id사용을 권장합니다. android:name Fragment의 고유 명으로 사용합니다. 아래와 같이 Fragment 교체 및 트랜잭션 시 활용합니다. // Replace whatever is in the fragment_container view with this frag.. 2024. 9. 14. 이전 1 다음