다른 조각 클래스를 확장하는 사용자 정의 조각 클래스가 있습니다. secondFragment 클래스는 뷰, tabFragment에 표시 할 레이아웃을 보유합니다.조각 내 조각 호출
public class SecondFragment extends PrimaryFragment {
public SecondFragment() {
}
}
는, 나는이
public class tabFragment extends Fragment {
}
같은 다른 조각 클래스는 내 두 번째 탭으로 표시 할 내 어댑터에 tabFragment을 추가 해요 있습니다. 내 tabFragment에서 secondFragment를 호출 할 수 있습니까?
중첩 된 조각을 사용하여이 https://developer.android.com/about/versions/android-4.2.html#NestedFragments에 대한 중첩 조각 – Raghunandan
읽기 사용해야합니다 , 나쁜 생각. – Mann