title: How to create Tabs in Android Application and add Tabs dynamically(Dependent on matching Users)
body: <p>I am developing Chat Application in Android and I want to add dynamic Chat Tabs dependent on current matched Users like attached in screenshot below :</p>
  <p><img src="https://i.stack.imgur.com/K8Ydn.png" alt="enter image description here" /></p>
  <p>In Screen shot Chat Tabs are at Top but I want <code>Chat Tabs at bottom</code>. Now I want to develop logic in <code>onCreate method</code> so that</p>
  <blockquote>
  <p>If there are three matched users then create 3 tabs,</p>
  <p>If there are four matched users then create 4 tabs,likewise..</p>
  </blockquote>
  <p>I searched a lot for chat Tabs and found ways to create Chat Tabs by using <code>TabHost</code>..But also found that it is deprecated,not sure.. Another way is to setup Chat Tabs in <code>Action Bar</code>..Somewhere found that use <a href="http://actionbarsherlock.com/" rel="nofollow noreferrer"><code>ActionBarSherlock</code></a>. I am very confused about chat tabs that what to use ?</p>
  <p>Any help will be appreciated.</p>