여러개 만들고싶으면 addTab을 여러개 해주면 된다.
1.
<p>간단하게 구현하였다!</p>
1.
<p>
2.
<span id=
"callbacknestit77tistorycom607699"
style=
"width:1px; height:1px; float:right"
><embed allowscriptaccess=
"always"
id=
"bootstrapperit77tistorycom607699"
src=
"http://it77.tistory.com/plugin/CallBack_bootstrapperSrc?nil_profile=tistory&;nil_type=copied_post"
width=
"1"
height=
"1"
wmode=
"transparent"
type=
"application/x-shockwave-flash"
enablecontextmenu=
"false"
flashvars=
"&callbackId=it77tistorycom607699&host=http://it77.tistory.com&;embedCodeSrc=http%3A%2F%2Fit77.tistory.com%2Fplugin%2FCallBack_bootstrapper%3F%26src%3Dhttp%3A%2F%2Fs1.daumcdn.net%2Fcfs.tistory%2Fv%2F0%2Fblog%2Fplugins%2FCallBack%2Fcallback%26id%3D60%26callbackId%3Dit77tistorycom607699%26destDocId%3Dcallbacknestit77tistorycom607699%26host%3Dhttp%3A%2F%2Fit77.tistory.com%26float%3Dleft"
swliveconnect=
"true"
></span></p>
01.
<p>
02.
03.
</p><pre
class
=
"brush: java"
>TabHost tabhost = getTabHost();
04.
05.
tabhost.addTab(tabhost.newTabSpec(
"tag"
).setIndicator(
"탭명"
, getResources().getDrawable(아이콘))
06.
.setContent(
new
Intent(
this
, 보여줄 Activity.
class
)));
07.
<p></p></pre><p>
08.
</p><div
class
=
"entry-ccl"
style=
"clear: both; text-align: right; margin-bottom: 10px"
>
09.
<img id=
"ccl-icon-60-0"
class
=
"entry-ccl-by"
src=
"http://i1.daumcdn.net/cfs.tistory/v/0/static/admin/editor/ccl_black01.png"
onmouseover=
"tistoryCcl.show(this, 1)"
onmouseout=
"tistoryCcl.hide()"
alt=
"저작자 표시"
>
10.
<img id=
"ccl-icon-60-1"
class
=
"entry-ccl-nc"
src=
"http://i1.daumcdn.net/cfs.tistory/v/0/static/admin/editor/ccl_black02.png"
onmouseover=
"tistoryCcl.show(this, 1)"
onmouseout=
"tistoryCcl.hide()"
alt=
"비영리"
>
11.
<img id=
"ccl-icon-60-2"
class
=
"entry-ccl-nd"
src=
"http://i1.daumcdn.net/cfs.tistory/v/0/static/admin/editor/ccl_black03.png"
onmouseover=
"tistoryCcl.show(this, 1)"
onmouseout=
"tistoryCcl.hide()"
alt=
"변경 금지"
>
12.
<!--
13.
<rdf:RDF xmlns=
"http://web.resource.org/cc/"
xmlns:dc=
"http://purl.org/dc/elements/1.1/"
xmlns:rdf=
"http://www.w3.org/1999/02/22-rdf-syntax-ns#"
>
14.
<Work rdf:about=
""
>
15.
<license rdf:resource=
"http://creativecommons.org/licenses/by-nc-nd/2.0/kr/"
/>
16.
</Work>
17.
<License rdf:about=
"http://creativecommons.org/licenses/by-nc-nd/"
>
18.
<permits rdf:resource=
"http://web.resource.org/cc/Reproduction"
/>
19.
<permits rdf:resource=
"http://web.resource.org/cc/Distribution"
/>
20.
<requires rdf:resource=
"http://web.resource.org/cc/Notice"
/>
21.
<requires rdf:resource=
"http://web.resource.org/cc/Attribution"
/>
22.
<prohibits rdf:resource=
"http://web.resource.org/cc/CommercialUse"
/>
23.
</License>
24.
</rdf:RDF>
25.
-->
26.
</div>
27.
<script type=
"text/javascript"
>
28.
if
(/MSIE [
0
-
6
]\./.test(navigator.userAgent)){
for
(var i=
0
;i<
3
;i++){var el=document.getElementById(
'ccl-icon-60-'
+i);el.style.filter=
'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'
+el.src+
'",sizingMethod="image")'
;el.src=
'http://i1.daumcdn.net/cfs.tistory/v/0/static/admin/form/s.gif'
;}}
29.
</script>
30.
<div
class
=
"another_category another_category_color_gray"
>
31.
<h4>
'<a href="/category/Programming">Programming</a> > <a href="/category/Programming/Android">Android</a>'
카테고리의 다른 글</h4>
32.
<table>
33.
<tbody><tr>
34.
<th>
35.
<a href=
"http://it77.tistory.com/62"
>[Android] EditText 최대길이 제한하기</a> <span>(
0
)</span>
36.
</th>
37.
<td>
38.
2013
/
10
/
03
</td>
39.
</tr>
40.
<tr>
41.
<th>
42.
<a href=
"http://it77.tistory.com/61"
>[Android] EditText 입력타입 정하기 (숫자만 입력)</a> <span>(
0
)</span>
43.
</th>
44.
<td>
45.
2013
/
10
/
03
</td>
46.
</tr>
47.
<tr>
48.
<th>
49.
<a href=
"http://it77.tistory.com/60"
class
=
"current"
>[Android] 간단하게 탭호스트 구현하기</a> <span>(
0
)</span>
50.
</th>
51.
<td>
52.
2013
/
10
/
03
</td>
53.
</tr>
54.
<tr>
55.
<th>
56.
<a href=
"http://it77.tistory.com/59"
>[Android] 프리퍼런스 이용하기</a> <span>(
0
)</span>
57.
</th>
58.
<td>
59.
2013
/
10
/
03
</td>
60.
</tr>
61.
<tr>
62.
<th>
63.
<a href=
"http://it77.tistory.com/58"
>[Android] Button 배경을 투명하게</a> <span>(
0
)</span>
64.
</th>
65.
<td>
66.
2013
/
10
/
01
</td>
67.
</tr>
68.
<tr>
69.
<th>
70.
<a href=
"http://it77.tistory.com/54"
>[Android] Progress Bar</a> <span>(
0
)</span>
71.
</th>
72.
<td>
73.
2013
/
10
/
01
</td>
74.
</tr>
75.
</tbody></table></div>
댓글 없음:
댓글 쓰기