title: How do I change a tab background color when using TabLayout?
body: <p>This is my code in the main activity</p>
  
  <pre><code>public class FilterActivity extends AppCompatActivity {
  
    @Override
    protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_filter);
  
      // Get the ViewPager and set it's PagerAdapter so that it can display items
      ViewPager viewPager = (ViewPager) findViewById(R.id.viewpager);
      PageAdapter pageAdapter = new PageAdapter(getSupportFragmentManager(), FilterActivity.this);
      viewPager.setAdapter(pageAdapter);
  
      // Give the TabLayout the ViewPager
      final TabLayout tabLayout = (TabLayout) findViewById(R.id.sliding_tabs);
      tabLayout.setupWithViewPager(viewPager);
  
  
  
    }
  }
  </code></pre>
  
  <p>And this is my code in the XML</p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical"&gt;
  
      &lt;include
          android:id="@+id/app_bar"
          layout="@layout/app_bar"&gt;
      &lt;/include&gt;
  
      &lt;android.support.design.widget.TabLayout
          android:id="@+id/sliding_tabs"
          android:layout_width="fill_parent"
          style="@style/MyCustomTabLayout"
          android:layout_height="48dp"/&gt;
  
      &lt;android.support.v4.view.ViewPager
          android:id="@+id/viewpager"
          android:layout_width="match_parent"
          android:layout_height="0px"
          android:layout_weight="1"
          android:background="@android:color/white" /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>I want to change the background color of one tab when it's selected</p>