title: How to add dynamic tabs and dynamic expandable list view inside it in Android?
body: <p>I just want to create a tabs dynamically according to the number category available. Inside each tab I need to create a number of Expandable list views dynamically inside the each tab. (Example: say I got four categories like education, sports, science, aerospace) then I need to create four tabs on run time, it will change according to the number categories I am getting (one or twenty or more).</p>
  
  <p>Inside each tab I need to create number of expandable list views (dynamically).</p>
  
  <p>After much research, I found some related links (<a href="https://stackoverflow.com/questions/4353132/dynamic-tab-in-android-with-dynamic-tab-content">here</a>, <a href="https://kandroid.wordpress.com/2011/05/28/tabview-part-1-simple-tab-control-in-android/" rel="nofollow noreferrer">here</a>, <a href="https://github.com/codepath/android_guides/wiki/Sliding-Tabs-with-PagerSlidingTabStrip" rel="nofollow noreferrer">here</a> and more). I would prefer to go with the proper and efficient method which I am not aware of.</p>