아래 글과 이어지는 질문입니다. 탭화면의 framelayout 에 제가 미리 그려놓은 xml화면을 끌어다 쓰고 싶어요.

 

탭화면을 추가하면 자동으로 framelayout에 다른 activity 화면을 가져다 쓰는것 처럼 말이죠.

 

account_TabSpec.setIndicator("장부");
account_TabSpec.setContent(new Intent(this,Account.class));  
presence_TabSpec.setIndicator("출석부", getResources().getDrawable(R.drawable.icon));  
presence_TabSpec.setContent(new Intent(this,Presence.class));  
notice_TabSpec.setIndicator("공지", getResources().getDrawable(R.drawable.icon));  
notice_TabSpec.setContent(new Intent(this,Notice.class));
setting_TabSpec.setIndicator("설정", getResources().getDrawable(R.drawable.icon));  
setting_TabSpec.setContent(new Intent(this,Setting.class));

 

 

이런식으로 setContent 에 newIntent로 미리 다른 activity를 만들어서 해주면 framelayout 부분에 다른 곳에 만들어둔 activity가 들어가는데,

 

문제는 addTab을 해서 탭버튼이 추가되어야만 그 화면이 같이 추가가 되는것이죠. 근데 저는 처음에 로그인화면을 framelayout에

 

넣어주고 싶어요. 로그인하면 자동으로 탭화면의 1번째 탭 "장부"로 넘어가도록 말이죠.

 

tab화면을 그린 xml에다가 로그인폼을 같이 그려넣는 수밖에 없을까요.