답변

1

가장 좋은 방법은 SupportMapFragment을 확장하고 거기에 모두 논리를 적용하는 것입니다.

그런 다음 당신은 단순히의 데이터 집합으로 FragmentPagerAdapter를 사용하여 ViewPager이 조각을 추가 할 수 있습니다

class FrgInfo { 
    Class clss; 
    Bundle args; 
} 

getItem 메서드를 재정의 :

@Override 
public Fragment getItem(final int position) { 
    final FrgInfo info = fragments.get(position); 
    return Fragment.instantiate(context, info.clss.getName(), info.args); 
} 

이 트릭을 할해야합니다.