title: Android TabLayout doesn't change Tab (Fragment) when clicked only works when swiped
body: <p>When I swipe my tabs left or right, the next tab is inflated - fragment is shown properly - however, when I click the tab title,nothing happens . Does this have to be implemented manually? I don't understand swiping works by default, so clicking should as well.</p>
  
  <p>My XML</p>
  
  <pre><code>    &lt;android.support.design.widget.TabLayout
              android:id="@+id/tabs"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:background="@color/colorPrimary"
              android:layout_below="@+id/toolbar"
              android:layout_alignParentLeft="true"
              android:layout_alignParentStart="true" /&gt;
  
          &lt;android.support.v4.view.ViewPager
              android:id="@+id/viewpager"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:layout_below="@+id/tabs" /&gt;
  </code></pre>
  
  <p>Main Activity</p>
  
  <pre><code>     ViewPagerAdapter adapter = new ViewPagerAdapter(getSupportFragmentManager());
      viewPager.setAdapter(adapter);
  
      tabLayout.setupWithViewPager(viewPager);
      viewPager.addOnPageChangeListener(new TabLayout.TabLayoutOnPageChangeListener(tabLayout));
  </code></pre>