title: Android get tabLayout from a fragment
body: <p>I was wondering if there's a way to access the tabLayout from a fragment.</p>
  
  <p>I declare my TabLayout below and I disable all the tabs.</p>
  
  <pre><code>TabLayout tabLayout = (TabLayout) findViewById(R.id.tabs);
  tabLayout.setupWithViewPager(mViewPager);
  
  LinearLayout tabStrip = ((LinearLayout)tabLayout.getChildAt(0));
      for(int i = 0; i &lt; tabStrip.getChildCount(); i++) {
         tabStrip.getChildAt(i).setOnTouchListener(new View.OnTouchListener() {
             @Override
             public boolean onTouch(View v, MotionEvent event) {
                  return true;
             }
         });
      }
  </code></pre>
  
  <p>What I would like to do is be able to enable them in a fragment inside a ClickListener.</p>
  
  <p>I am not sure I should declare the tabLayout static and access it like that or if there's a correct way of doing this.</p>
  
  <p>I apologize if I did not explain it correct - still a little new to Android.</p>