안드로이드 개발 질문/답변
(글 수 45,052)
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/tab_view"
>
<ListView
android:id="@+id/lv"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
/>
<Button
android:id="@+id/addBt"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="추가"
android:layout_alignParentBottom="true"
android:layout_below="@+id/lv"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:layout_marginTop="10dp"
/>
</RelativeLayout>
<<<< 가운데 리스트 쪽 XML 입니다 >>>>
TabHost 안에 리스트뷰와 버튼을 넣었는데요.
리스트뷰하고 버튼이 서로 따로 놉니다..ㅠㅠ
탭호스트 쪽 클래스 따로 만들고 , 그안에 Activity 를 불러오도록 하였습니다..
사진 본문등록했는데 , 안보이네요
파일첨부했으니 확인 부탁드려요..
<<<탭메뉴쪽 XML 입니다..>>>
<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/tabhost"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
>
<TabWidget
android:id="@android:id/tabs"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
/>
<FrameLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:id="@android:id/tabcontent"
android:layout_below="@android:id/tabs"
>
</FrameLayout>
</RelativeLayout>
</TabHost>




리스트뷰에 footer로 추가하시거나 릴레이티브 레이아웃을 리니어 레이아웃 버티컬로 해보시죠