Tab Layout with Fragments loading next or previous Tabs Data
<p>I have four tabs and its four fragments attached. Swiping will take you to next fragment or tab.</p>

<p>All four fragments have the dynamic data from the server.</p>

<p>First time it was loading 1st and 2nd fragments loading. then swiping to right 3rd loading and 1st detaching, but I am in 2nd fragment.</p>

<p>Now, I swipe to left the loading for 3rd fragment not completed. So it was taking more time to load. I am in 1st fragment the background process of 3rd is still running and showing the toast message and all.</p>

<p>How to give preference or detaching the unwanted fragment to overcome this problem.</p>

<p>Or can you give some good suggestions to this problem</p>