title: How do I avoid code duplication for fragments?
body: <p>If I want to create a tabbed activity with more than 10 swipable fragments, what other option do I have rather than to create 10 different Fragment classes with layouts and inflate they based on their position in the tabbed layout.</p>
  
  <p>That obviously sounds like a lot of duplicated code.</p>
  
  <p>My question, fair and simple, is there any other way to avoid this?</p>