<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/toptab"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
>
<include
android:id="@+id/title"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
layout="@layout/title" />
<TabHost
android:layout_marginTop="30dp"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@android:id/tabhost">
<FrameLayout
android:layout_marginTop="30dp"
android:id="@android:id/tabcontent"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1"
android:layout_marginBottom="40dp"
>
<TextView android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/profile"
android:text="첫번째 탭 화면" />
<TextView android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/friends"
android:text="두번째 탭 화면" />
<TextView android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/wanted"
android:text="세번째 탭 화면" />
<TextView android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/log"
android:text="네번째 탭 화면" />
</FrameLayout>
</TabHost>
</LinearLayout>
---------tabhost-----------
| tab1 | tab2 |
------------------------------
| |
| |
----------------------------
탭호스트를 구현하면 이런식으로 나오는데
-----------------------------
| textview,imageview|
-----------tabhost-------
| tab1 | tab2 |
-------------------------------
| |
| |
----------------------------
이런식으로 구현하고싶어서 위에 코드처럼 만들어봣는데 텍스트,이미지있는 레이아웃이 자꾸 밑으로가더라구요 ㅜㅜ
탭호스트가 하단으로 내려가는 방법좀알려주세요 ....