안녕하세요..


머라고 설명해야 할지..


음..


설명하자면 탭안의 서브 페이지 이동?



문제의 요지:


xml :

    <FrameLayout

        android:id="@+id/mainLayoutcontent"

        android:layout_width="fill_parent"

        android:layout_height="fill_parent"

        android:layout_marginBottom="51.48dp"

        android:layout_marginTop="39.6dp" >


        <include

            android:id="@+id/main_tab1"

            android:layout_width="fill_parent"

            android:layout_height="fill_parent"

            layout="@layout/list" />


        <include

            android:id="@+id/main_tab2"

            android:layout_width="fill_parent"

            android:layout_height="fill_parent"

            layout="@layout/insert" />


        <include

            android:id="@+id/main_tab3"

            android:layout_width="fill_parent"

            android:layout_height="fill_parent"

            layout="@layout/setup" />

       

    </FrameLayout>


java

findViewById(R.id.main_tab1).setVisibility(View.INVISIBLE); 히든

findViewById(R.id.main_tab2).setVisibility(View.INVISIBLE); 히든

findViewById(R.id.main_tab3).setVisibility(View.INVISIBLE); 히든

findViewById(R.id.main_tab4).setVisibility(View.INVISIBLE); 히든


findViewById(R.id.main_tab3).setVisibility(View.VISIBLE); 노출

findViewById(R.id.menu3).setBackgroundResource(R.drawable.menu3_on); 하단탭메뉴이미지 오버상태로 변경



이렇게 구성했는데..


서브 메뉴 클릭시 해당 컨텐츠부분만 호출할수 없나요?


전체페이지가 다시 호출되고 하단메뉴도 다시 호출되고...왠지 이건 아닌것같은데;;ㅠㅠ


TabHost를 사용하면 가능한가요? 그것도 서브메뉴 클릭시 전부 호출할꺼 같은데;;





즉 다시 정리하면


탭만드는 것과 액티비티 전환을 따로따로 하면 할 수 있는데

탭을만들고 그 안에서 탭은 그대로 유지한 상태로 액티비티를 바꾸는것을 못하겠습니다. ㅜ

자꾸 클릭하면 탭있는 화면째로 날라가면서 다른 액티비티로 전환되네요.

탭을 유지시킬수있는 방법이 없나요?