title: ripple effect for tabs
body: <p>I am not able to use ripple effect on pressing on a tab please help I have tried a lot and struggling with it whole day.How can I use ripple effect on both pre-lollipop and lollipop devices any suggestion?</p>
  
  <p><strong>MainActivity.java</strong></p>
  
  <pre><code>@Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
  
      mPager=(ViewPager)findViewById(R.id.pager);
      mPager.setAdapter(new MyPagerAdapter(getSupportFragmentManager(),getApplicationContext()));
      mTabs=(SlidingTabLayout)findViewById(R.id.tabs);
      mTabs.setDistributeEvenly(true);
      mTabs.setCustomTabView(R.layout.customtablayout,R.id.textTab);
      mTabs.setBackgroundColor(getResources().getColor(R.color.colorAccent));
      mTabs.setSelectedIndicatorColors(getResources().getColor(R.color.colorPrimary));
  
      mTabs.setViewPager(mPager);
  
  }
  </code></pre>
  
  <p>activitymain.xml</p>
  
  <pre><code>&lt;sarveshchavan777.inrerface2.SlidingTabLayout
      android:id="@+id/tabs"
      android:layout_width="match_parent"
      android:layout_height="wrap_content" /&gt;
  
  &lt;android.support.v4.view.ViewPager
      android:id="@+id/pager"
      android:layout_width="match_parent"
      android:layout_height="0dp"
      android:layout_weight="1" /&gt;
  </code></pre>
  
  <p>customtablayout.xml</p>
  
  <pre><code>&lt;ImageView
      android:id="@+id/imageTab"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:layout_gravity="center" /&gt;
  
  &lt;TextView
      android:id="@+id/textTab"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:gravity="bottom|center" /&gt;
  </code></pre>