title: android TabItem onClick doesn't work
body: <p>I have function cityClick, 
  if I call this function from a textView its working ok, but if I call cityClick from TabItem it doesn't work, what is going on?</p>
  
  <p>Java</p>
  
  <pre><code>public class Kategorie extends AppCompatActivity
      implements NavigationView.OnNavigationItemSelectedListener {
  
  protected void cityClick(View view) {
      Toast.makeText(this, "Hello", Toast.LENGTH_LONG).show();
  }
  </code></pre>
  
  <p>Layout</p>
  
  <pre><code>    &lt;android.support.design.widget.TabLayout
          android:id="@+id/tabs"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:gravity="center"
          android:clickable="true"
          android:onClick="cityClick"
          app:tabMode="fixed"&gt;
  
          &lt;android.support.design.widget.TabItem
              android:layout_height="wrap_content"
              android:layout_width="match_parent"
              android:textAlignment="center"
              android:textSize="18sp"
              android:onClick="cityClick"
              android:clickable="true"
              android:text="GDAŃSK" /&gt;
  
          &lt;android.support.design.widget.TabItem
              android:layout_height="wrap_content"
              android:layout_width="match_parent"
              android:textAlignment="center"
              android:textSize="18sp"
              android:onClick="cityClick"
              android:clickable="true"
              android:text="SOPOT" /&gt;
  
          &lt;android.support.design.widget.TabItem
              android:layout_height="wrap_content"
              android:layout_width="match_parent"
              android:textAlignment="center"
              android:textSize="18sp"
              android:onClick="cityClick"
              android:clickable="true"
              android:text="GDYNIA" /&gt;
  
      &lt;/android.support.design.widget.TabLayout&gt;
  </code></pre>
  
  <p>I was searching on this forum, but no found anything to help me.</p>