현재의 컨텐츠 레이아웃에서 콤포넌트 받아오기
Button btn = (Button)findViewById(R.id.button1);
다른 레이아웃에서 받아오기
LayoutInflater factory = LayoutInflater.from(this);
View main2 = factory.inflate(R.layout.main2, null);
Button btn = (Button)main2.findViewById(R.id.btn);