title: Use view pager from embedded fragment to change spinner in parent activity?
body: <p>I'm having a bit of trouble with communication between a parentActivity and its child fragment.</p>
  
  <p>I am using actionbarsherlock.</p>
  
  <p>I have looked around on SO, but I haven't found something that deals with ViewPagers and Spinners yet.</p>
  
  <p><strong>Background:</strong> </p>
  
  <p>My child fragment has its own action bar specifying a couple of extra action items not available in other fragments, one of these action items is a spinner with multiple options - A, B and C etc</p>
  
  <p>By default the MainActivity will load Fragment_A(child fragment) which contains a ViewPager. </p>
  
  <p>This view pager handles swipes between views A and B(Spinner has options A,B, C etc)</p>
  
  <p>Fragment_A also has spinner adapter. If you select A on the spinner, the viewPager switches to A, if you select B on the spinner, the viewPager switches to B. (This works fine).</p>
  
  <p><strong>My question is: How do I capture when the user "swipes" between A and B(They don't use the spinner) and change my "spinner" to say A or B respectively?</strong></p>
  
  <p>Note: My pager adapter(for ViewPager) is created separately in a different class.</p>
  
  <p>Any help is appreciated...Thank you all!</p>