title: How to get the current selected item position using TabLayout in Android Design Library
body: <p>I am using the android design library TabLayout in that how can I get the current selected item tab position.</p>
  
  <pre><code>  ViewPager pager = (ViewPager) view.findViewById(R.id.pager);      
    MyPagerAdapter adapter = new MyPagerAdapter(getChildFragmentManager());
    pager.setAdapter(adapter);
    tabLayout.setupWithViewPager(pager);
  </code></pre>