title: Add non-swipeable Tab to toolbar in android
body: <p>I am developing an android app. I was able to add toolbar using support library to the app. Now i want to add tabs to the app. But the tab should be non-swipeable. I searched the internet but all the questions and articles were for swipeable tabs.</p>
  
  <p><strong>toolbar.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent" &gt;
  
  &lt;android.support.v7.widget.Toolbar
      xmlns:app="http://schemas.android.com/apk/res-auto"
      android:id="@+id/toolbarsdfs"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:minHeight="?attr/actionBarSize"
      android:background="?attr/colorPrimaryDark"
      app:theme="@style/ThemeOverlay.AppCompat.ActionBar"&gt;
  
  &lt;/android.support.v7.widget.Toolbar&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p><strong>ToolbarActivty.Java</strong></p>
  
  <pre><code>public class ToolbarActivity extends AppCompatActivity {
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.toolbar);
      Toolbar toolbar = (Toolbar) findViewById(R.id.toolbarsdfs);
      if (toolbar != null) {
          setSupportActionBar(toolbar);
          getSupportActionBar().setDisplayHomeAsUpEnabled(true);
      }
  }
  }
  </code></pre>
  
  <p><strong><em>This is what i want to acheive.</em></strong>
  <a href="https://i.stack.imgur.com/1fheS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1fheS.png" alt="enter image description here"></a></p>