728x90 반응형 LayoutInflater1 [Android] LayoutInflater 정리 LayoutInflater 안드로이드에서 View를 만드는 방법 중 하나.layout XML 파일을 통해 View 객체 실체화, 즉 XML리소스를 View 객체로 반환해 주는 역할.xml에 미리 정해둔 틀을 실제 메모리에 올려주는 역할을 한다.setContentView() 메소드도 inflater를 통해 이루어지는 유사한 역할을 한다.LayoutInflater 객체의 inflate 메소드를 이용해 새로운 view를 생성할 숭 ㅣㅆ따. LayoutInflater 선언 방법1.LayoutInflater layoutInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);View view = layoutInflat.. 2025. 3. 10. 이전 1 다음 728x90 반응형