2
현재 고객의 사양에 따라 애플리케이션을 만들려고하고 있으며 이중 탭 세트가 포함되어 있습니다.Android : 탭 내의 탭
사용자가 하단의 탭을 클릭해야한다는 것을 의미합니다. 예를 들어 첫 번째 탭에서 클릭 할 수있는 상단에 일련의 탭이 표시됩니다 (하지만 여기를 클릭하면 상단의 항목은 변경되지만 하단의 탭은 변경되지 않습니다).
어떻게 Android에서이 작업을 수행 할 수 있습니까? 지금까지 난 단지 루트 항목을 만드는 일반 탭을 구현할 수있는 'TabHost 그냥 같이 :
<?xml version="1.0" encoding="utf-8"?>
<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="fill_parent"
android:orientation="vertical" >
<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_alignParentTop="true" >
</FrameLayout>
<TabWidget
android:id="@android:id/tabs"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true" />
</RelativeLayout>
</TabHost>
덕분에 많은 사전에!
와이 :
http://www.youtube.com/watch?v=gMu8XhxUBl8
이 왜 tabhost를 가질 수 없습니다 – Hiral
@Hiral 미안하지만 당신의 대답을 이해하지 못했습니다. 어떻게해야합니까? – noloman
탭 중 하나를 클릭하면 액티비티가 시작됩니다. 바로 그 액티비티에서 레이아웃 파일을 갖게됩니다. 탭 호스트도 가지고 있다고 말했기 때문에 액티비티를로드하면 탭이 생깁니다. 탭 안에. – Hiral