title: Android TabLayout with viewpager tab text color not working at first
body: <p>I'm using <code>TabLayout/ViewPager</code> and there are three fragments.</p>
  
  <p>I set a default page of ViewPager with  <code>ViewPager.setCurrentItem()</code>. ViewPager shows me a fragment what i wanted to see but the tab's text color of TabLayout isn't applied properly.(First tab's text color is displayed as a selected tab at unconditionally at onCreate)</p>
  
  <p>Can anyone please give me an advise about how can i fix this? </p>
  
  <hr>
  
  <pre><code>    ViewPager pager = (ViewPager) findViewById(R.id.pager);
      TabLayout tabs = (TabLayout) findViewById(R.id.tabs);
  
      pager.setAdapter(new MyPagerAdapter(getSupportFragmentManager()));
      pager.setCurrentItem(1);
      pager.setOffscreenPageLimit(2);
  
      tabs.setBackgroundColor(Color.parseColor("#a3000e"));
      tabs.setTabTextColors(Color.parseColor("#999999"), Color.parseColor("#ffffff"));
      tabs.setupWithViewPager(pager);
  </code></pre>