@Override
protected
void
onCreate(Bundle savedInstanceState) {
super
.onCreate(savedInstanceState);
context =
this
;
setContentView(R.layout.main);
TabHost mTab = getTabHost();
TabHost.TabSpec spec;
Intent intent;
intent =
new
Intent(
this
, Tab1.
class
);
spec = mTab.newTabSpec(
"Tab1"
).setIndicator(
"배차"
)
.setContent(intent);
mTab.addTab(spec);
intent =
new
Intent(
this
, Tab2.
class
);
spec = mTab.newTabSpec(
"Tab2"
).setIndicator(
"관제"
)
.setContent(intent);
mTab.addTab(spec);
intent =
new
Intent(
this
, Tab3.
class
);
spec = mTab.newTabSpec(
"Tab3"
).setIndicator(
"DTG"
)
.setContent(intent);
mTab.addTab(spec);
intent =
new
Intent(
this
, Tab4.
class
);
spec = mTab.newTabSpec(
"Tab4"
).setIndicator(
"기타"
)
.setContent(intent);
mTab.addTab(spec);
for
(
int
tab =
0
; tab < mTab.getTabWidget().getChildCount(); ++tab) {
mTab.getTabWidget().getChildAt(tab).getLayoutParams().height =
120
;
RelativeLayout relLayout = (RelativeLayout)mTab.getTabWidget().getChildAt(tab);
TextView tv = (TextView)relLayout.getChildAt(
1
);
tv.setTextSize(
20
);
}
checkVersionUpdate();
alertGpsService();
}