리비전 50, 0.9 kB
(mefour에 의해 체크인됨, 15 년 전)
|
tkwoo
|
Line | |
---|
1 |
package com.hubmeka.twitter; |
---|
2 |
|
---|
3 |
|
---|
4 |
import android.app.Activity; |
---|
5 |
import android.app.TabActivity; |
---|
6 |
import android.os.Bundle; |
---|
7 |
import android.widget.TabHost; |
---|
8 |
|
---|
9 |
public class Index extends TabActivity { |
---|
10 |
/** Called when the activity is first created. */ |
---|
11 |
@Override |
---|
12 |
public void onCreate(Bundle savedInstanceState) { |
---|
13 |
super.onCreate(savedInstanceState); |
---|
14 |
setContentView(R.layout.main); |
---|
15 |
|
---|
16 |
TabHost th = getTabHost(); |
---|
17 |
|
---|
18 |
th.addTab( |
---|
19 |
th.newTabSpec("TAB_TEST1") |
---|
20 |
.setIndicator("twitter list") |
---|
21 |
.setContent(R.id.content01) |
---|
22 |
); |
---|
23 |
|
---|
24 |
th.addTab( |
---|
25 |
th.newTabSpec("TAB_TEST2") |
---|
26 |
.setIndicator("...") |
---|
27 |
.setContent(R.id.content02) |
---|
28 |
); |
---|
29 |
|
---|
30 |
th.addTab( |
---|
31 |
th.newTabSpec("TAB_TEST3") |
---|
32 |
.setIndicator("...") |
---|
33 |
.setContent(R.id.content03) |
---|
34 |
); |
---|
35 |
} |
---|
36 |
} |
---|