title: Do not allow user to click on one of the tabs
body: <p>I have 7 dates tabs in my screen. However, if the date falls on another month, I do not allow user to click on that tabs. I want to make them visible but not clickable.</p>
  
  <p><img src="https://i.stack.imgur.com/tIogs.png" alt="This is how the tabs look like"> </p>
  
  <p>This is part of my code: </p>
  
  <pre><code>public void setupViewPager(ViewPager viewPager, ArrayList&lt;String&gt; id, ArrayList&lt;String&gt; tasks,
                             ArrayList&lt;Double&gt; mondayHours, ArrayList&lt;Double&gt; tuesdayHours,
                             ArrayList&lt;Double&gt; wednesdayHours, ArrayList&lt;Double&gt; thursdayHours,
                             ArrayList&lt;Double&gt; fridayHours, ArrayList&lt;Double&gt; saturdayHours,
                             ArrayList&lt;Double&gt; sundayHours) {
      Bundle bundle = new Bundle();
      bundle.putStringArrayList(EXTRA_CHECKED_TASK_ID, id);
      bundle.putStringArrayList(EXTRA_CHECKED_TASKS, tasks);
      bundle.putSerializable(EXTRA_MONDAY, mondayHours);
      bundle.putSerializable(EXTRA_TUESDAY, tuesdayHours);
      bundle.putSerializable(EXTRA_WEDNESDAY, wednesdayHours);
      bundle.putSerializable(EXTRA_THURSDAY, thursdayHours);
      bundle.putSerializable(EXTRA_FRIDAY, fridayHours);
      bundle.putSerializable(EXTRA_SATURDAY, saturdayHours);
      bundle.putSerializable(EXTRA_SUNDAY, sundayHours);
  
      final String MON = "MON" + "\n" + MainActivity.sevenDatesList.get(0);
      final String TUE = "TUE" + "\n" + MainActivity.sevenDatesList.get(1);
      final String WED = "WED" + "\n" + MainActivity.sevenDatesList.get(2);
      final String THU = "THU" + "\n" + MainActivity.sevenDatesList.get(3);
      final String FRI = "FRI" + "\n" + MainActivity.sevenDatesList.get(4);
      final String SAT = "SAT" + "\n" + MainActivity.sevenDatesList.get(5);
      final String SUN = "SUN" + "\n" + MainActivity.sevenDatesList.get(6);
  
      adapter = new ViewPagerAdapter(getSupportFragmentManager(), bundle);
      adapter.addFragment(new MondayFragment(), MON);
      adapter.addFragment(new TuesdayFragment(), TUE);
      adapter.addFragment(new WednesdayFragment(), WED);
      adapter.addFragment(new ThursdayFragment(), THU);
      adapter.addFragment(new FridayFragment(), FRI);
      adapter.addFragment(new SaturdayFragment(), SAT);
      adapter.addFragment(new SundayFragment(), SUN);
  
      viewPager.setAdapter(adapter);
  }
  </code></pre>
  
  <p>This is my XML code:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      android:orientation="vertical"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      tools:context="com.ada.foresight.TimesheetActivity"&gt;
  
      &lt;RelativeLayout
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_weight="1"
          android:paddingTop="8dp"
          android:paddingBottom="8dp"
          android:paddingLeft="@dimen/activity_horizontal_margin"
          android:paddingRight="@dimen/activity_horizontal_margin"&gt;
  
          &lt;TextView
              android:id="@+id/lblWeekMsg"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:text="@string/week"
              android:textAppearance="?attr/textAppearanceListItem" /&gt;
          &lt;TextView
              android:id="@+id/lblWeekNo"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_toEndOf="@id/lblWeekMsg"
              android:layout_alignBaseline="@id/lblWeekMsg"
              android:text=""
              android:textAppearance="?attr/textAppearanceListItem" /&gt;
  
      &lt;/RelativeLayout&gt;
      &lt;android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
          xmlns:app="http://schemas.android.com/apk/res-auto"
          android:id="@+id/coordinator_layout"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_weight="30"&gt;
  
          &lt;android.support.design.widget.AppBarLayout
              android:layout_width="match_parent"
              android:layout_height="wrap_content" &gt;
  
              &lt;android.support.design.widget.TabLayout
                  android:id="@+id/tab_layout"
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  app:tabTextColor="@android:color/white"
                  app:tabMode="scrollable"
                  app:tabGravity="fill" /&gt;
  
          &lt;/android.support.design.widget.AppBarLayout&gt;
  
          &lt;android.support.v4.view.ViewPager
              android:id="@+id/view_pager"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              app:layout_behavior="@string/appbar_scrolling_view_behavior" /&gt;
  
      &lt;/android.support.design.widget.CoordinatorLayout&gt;
      &lt;RelativeLayout
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_weight="1"
          android:paddingBottom="@dimen/activity_vertical_margin"
          android:paddingLeft="@dimen/activity_horizontal_margin"
          android:paddingRight="@dimen/activity_horizontal_margin"&gt;
  
      &lt;/RelativeLayout&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>I researched on similar problem, but we using different approach to create tabs and some I do not understand. <a href="https://stackoverflow.com/questions/27549951/how-do-i-disable-the-tab-click-event-for-a-pagertabstrip">Research 1</a></p>