Heres my problem, I have a viewPager that is linked with my data in a list. for example the list at index 0, contains data for the first fragment, the indice 1 is the second fragment and etc. So when i make a new fragment, I dot it like this :
public override Fragment GetItem (int position)
return new DashboardFragment (mActivity,position);
In my fragment, in the onCreate, I load the data from the list at the index position. But this creates a problem because sometime, when I swap, the onCreateView will get called and will refresh the thirdElement, but it didnt create a new fragment, so it took the first fragment that has the position to 0, so that refresh my third fragment with the data of the first one. Can some one help me please, I dont know what to do about it. Thanks a lot !