LayoutInflater inflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);
//시스템서비스로부터 얻어오기
LinearLayout sublayout = (LinearLayout) findViewById(R.id.sub_activity);
//activity안에 화면을 뿌릴 리니어 레이아웃 얻어오기(부모 얻어오기)
inflater.inflate(R.layout.activity_sub, sublayout,true);
//부모안에 activity_sub를 인플레이트 시킨다.
'기초 > android' 카테고리의 다른 글
객체의 직렬화 (0) | 2015.05.27 |
---|---|
어플리케이션 4가지 (0) | 2015.05.26 |
RelativeLayout (0) | 2015.05.21 |
RadioGroup (0) | 2015.05.20 |
안드로이드 widget 참고사항 (0) | 2015.05.20 |