title: How to use public method removeTab(TabLayout.Tab tab)?
body: <p>Checking [<a href="https://developer.android.com/reference/android/support/design/widget/TabLayout.html][1]" rel="nofollow">https://developer.android.com/reference/android/support/design/widget/TabLayout.html][1]</a> I created my tabs </p>
  
  <pre><code>tabLayout = (TabLayout) findViewById(R.id.tab_layout);
          tabLayout.addTab(tabLayout.newTab().setText("Tab 1 Item").setIcon(android.R.drawable.ic_dialog_email).setTag("tt"));
          tabLayout.addTab(tabLayout.newTab().setText("Tab 2 Item").setIcon(android.R.drawable.ic_btn_speak_now));
          tabLayout.addTab(tabLayout.newTab().setText("Tab 3 Item").setIcon(android.R.drawable.ic_lock_idle_low_battery));
          tabLayout.addTab(tabLayout.newTab().setText("Tab 4 Item").setIcon(android.R.drawable.ic_dialog_alert));
  </code></pre>
  
  <p>but then when I try to remove the tab I am getting error. My simple question is how can I use the method <strong>removeTab(TabLayout.Tab tab)</strong> ?</p>