title: Android : ViewFlipper Or ViewPager - Which is the better option?
body: <p>I am getting stuck in one stage. I have a total of 20 to 25 images that should get animated like <code>ViewPager</code> does. Now on all the images I have <code>onClick()</code> events and I don't know if I should work with <code>ViewPager</code> or <code>ViewFlipper</code>. I can implement both things, no issues here. </p>
  
  <p><strong>What I Want :</strong> I just want a suggestion that according to my problem which will be the best option, <code>ViewFlipper</code> or <code>ViewPager</code>?</p>
  
  <p><strong>What I Have Searched :</strong> I have gone through different links on StackOverflow, namely <a href="https://stackoverflow.com/questions/7338351/how-to-improve-the-performance-of-viewflipper-viewanimator">How to improve the performance of ViewFlipper/ViewAnimator</a> and <a href="https://stackoverflow.com/questions/9009071/viewflipper-vs-fragments">ViewFlipper vs Fragments</a>, but I could not find the thing I want.</p>
  
  <p>I have worked with <code>ViewPager</code> somewhat, but at that time there were just 3 or 4 <code>Fragments</code> I had to manage. If I were to use it to solve this problem I have to manage 25 <code>Fragments</code> this time. So I am wondering if there is a better solution available. </p>
  
  <p>I have also done a little R &amp; D on <code>ViewFliper</code> and know that it has only one <code>Activity</code> I have to manage but it does not have the animation accuracy that <code>ViewPager</code> has.</p>
  
  <p>Please suggest me whether I should go for <code>ViewPager</code> or <code>ViewFlipper</code>? </p>
  
  <p>Thanks in Advance.</p>