私はタブのホストを作り、その中に4つのタブを示す、コードの下のプロフィールにTabHost内の別のアクティビティ?
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
TabHost tabHost = getTabHost();
tabHost.addTab(tabHost.newTabSpec("list").setIndicator("List").setContent(
new Intent(this, List.class)));
tabHost.addTab(tabHost.newTabSpec("profile").setIndicator("Profile").setContent(
new Intent(this, Profile.class)));
tabHost.addTab(tabHost.newTabSpec("criteria").setIndicator("Criteria").setContent(
new Intent(this, Criteria.class)));
tabHost.addTab(tabHost.newTabSpec("more").setIndicator("More").setContent(
new Intent(this, More.class)));
}
}
であるように私がボタンをクリックすると、私は、ユーザーのプロファイルを編集するためのボタンがあり、それがメソッドを呼び出していますある
@Override
public void onClick(View v) {
System.out.println("Veer");
Intent intent = new Intent().setClass(this, EditProfile.class);
Intent intent = new Intent(this, EditProfile.class);
}
がEditProfileを示しているが、タブはiPhoneのように表示されていない以下のようにそれが、今私は私のタブが上記であるべきとEditProfileは、[プロファイル]タブ内にあることが何をすべきすべての時間表示されていますか?