title: Android SlidingTabLayout with icons
body: <p>I am using google's SlidingTabLayout in my view, but i want to add icons to the tabs. I'm using this <a href="http://developer.android.com/samples/SlidingTabsBasic/src/com.example.android.common/view/SlidingTabLayout.html" rel="noreferrer">http://developer.android.com/samples/SlidingTabsBasic/src/com.example.android.common/view/SlidingTabLayout.html</a>
  Can anyone please help?</p>
  
  <pre><code>void setUpPager(View view){
      mViewPager = (ViewPager) view.findViewById(R.id.viewpager);
      mViewPager.setAdapter(new TabsPagerAdapter(getActivity()));
      mSlidingTabLayout = (SlidingTabLayout) view.findViewById(R.id.sliding_tabs);
      mSlidingTabLayout.setViewPager(mViewPager);
    }
  </code></pre>
  
  <p>Here is my 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;android.common.view.SlidingTabLayout
        android:id="@+id/sliding_tabs"
        android:layout_width="match_parent"
        android:layout_height="wrap_content" /&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>