2013-12-14 2 views
1

내가 조각 내 Tabhost를 사용하는 방법 안드로이드 설명서의 튜토리얼을 따라 작업,하지만 난 항상 받고 있어요하지Tabhost 설정()

The method setup(android.content.Context, android.support.v4.app.FragmentManager, int) in the type FragmentTabHost is not applicable for the arguments (android.content.Context, android.app.FragmentManager, int) 

내 설치 명령은 다음과 같이이다 :

mTabHost.setup(getActivity().getApplicationContext(), getChildFragmentManager(), R.layout.fragment_vc_view); 

답변

9

설정 방법이라고 부르는 수업과 같은 소리가 android.app.Fragment이고 길이는 android.support.v4.app.Fragment이 아닙니다.

+0

그래서 무엇을 변경해야합니까? –

+1

변경 가져 오기 android.app.Fragment 가져 오기 android.support.v4.app.Fragment –

+0

모든 업데이트? 효과가 있었나요? –