roomorama / Caldroid

A better calendar for Android
Other
1.42k stars 532 forks source link

Multiple Caldroid in a fragment and View Pager #470

Closed FajarKhan closed 6 years ago

FajarKhan commented 6 years ago

I have a ViewParent that is attached to three fragment. Each fragment I have Caldroid implemented. But only first fragment is actually showing Caldroid . Rest of two fragment is empty. Is there any solution for this?

I have tried Implemented Caldroid using : FragmentTransaction t = getActivity().getSupportFragmentManager() .beginTransaction(); Also tried this too: FragmentTransaction t = getFragmentManager() .beginTransaction();

FajarKhan commented 6 years ago

I have fixed this. If anyone has this problem, Simply add:

FragmentTransaction t =getChildFragmentManager() .beginTransaction();