80,472
社区成员




private void addTab(String tag, String text, Class<?> activityClass, Drawable drawable) {
Intent intent = new Intent();
intent.setClass(this, activityClass);
TabHost.TabSpec tabSpec = mTabHost.newTabSpec(tag);
tabSpec.setIndicator(text, drawable);
tabSpec.setContent(intent);
mTabHost.addTab(tabSpec);
}
}