title: Correct way to attach an item selected listener with a spinner in a fragment attached with viewpager
body: <p>I have 4 fragments attached with a viewpager. The 1st fragment has a spinner that has an <code>item selected listener</code> in <code>onCreateView()</code> method. Each time an item is picked from the spinner, a list adds that data. </p>
  
  <p>Now when I swipe right to get to the other fragments, the 1st fragment is paused. Then if I come back to the 1st fragment the <code>onCreateView()</code> method runs again and loads the <code>item selected listener</code> again and adds the previosly added data again. </p>
  
  <p>To avoid the situation I've taken the <code>item selected listener</code> inside an <code>on touch listener</code>. Now It's working as expected. But it just does not feel right. Any advice or help will be appreciated.</p>
  
  <p>Thanks in advance.</p>