2012. 3. 21. 02:53

 controlInflater = LayoutInflater.from(getBaseContext());
View viewControl = controlInflater.inflate(R.layout.camerarecord, null);
LayoutParams layoutParamsControl = new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT);
this.addContentView(viewControl, layoutParamsControl);

inflater layout을 쓰면되는데

main.xml 외에 다른 xml 을 만든고 거기에 디자인을 한다.

이후에 infater로 합쳐주면되는데 controlinflater,inflate(R.layout 부분이 기존외에 합쳐질 레이아웃이다. 

Posted by k1rha