title: Android Image Slider without gallery in a FragmentActivity
body: <p>I'm trying to create a Tabed application where one tab will hold up to 25-30 images.
  I want does images to be able to swipe to the next/prev and not having a gallery.</p>
  
  <p>I've been searching around trying to find some sort of slider example but only found a lot of them using Gallery, witch seems to also be deprecated in ICS and up.</p>
  
  <p><img src="https://i.stack.imgur.com/GRueo.png" alt="The preferred look"></p>
  
  <p>What I've gotten so far is the actual fragment:</p>
  
  <pre><code>public class ImageTab extends Fragment {
  
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
      return inflater.inflate(R.layout.image_layout, container, false);
    }
  
    @Override
    public void onViewCreated(View view, Bundle savedInstanceState) {
      super.onViewCreated(view, savedInstanceState);
    }
  
  }
  </code></pre>
  
  <p>If anyone could point me in the right direction, it would be mostly appreciated.</p>
  
  <p>best,
  Henrik</p>