Layout Inflation이란?
xml소스를 객체화시켜 메모리에 올리는 과정.
LayoutInflater 클래스의 inflate 메소드를 사용한다.
ex) LayoutInflater inflater = (LayoutInflater)getSystemService(Context.LAYOUT_INFLATER_SERVICE);
inflater.inflate(inflatedLayout, container);
inflatedLayout - inflate할 레이아웃 (ex - R.layout.inflatedLayout)
container - inflatedLayout을 담는 뷰 객체
댓글 없음:
댓글 쓰기