title: Android ListView thumb ScrollBar
body: <p><strong>I want to see the following thumb scrollbar:</strong></p>
  
  <p><a href="http://www.androidpatterns.com/uap_pattern/scroll-thumb" rel="nofollow noreferrer">http://www.androidpatterns.com/uap_pattern/scroll-thumb</a></p>
  
  <p><strong>What I am seeing is:</strong></p>
  
  <p><img src="https://i.stack.imgur.com/WlmLg.png" alt="enter image description here"></p>
  
  <p><strong>My XML Layout is:</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical" &gt;
  
      &lt;com.google.ads.AdView
          android:id="@+id/adView"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          ads:adSize="SMART_BANNER"
          ads:adUnitId="xxaassss"
          ads:loadAdOnCreate="true" &gt;
      &lt;/com.google.ads.AdView&gt;
  
      &lt;ListView
          android:id="@+id/list"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:divider="#b5b5b5"
          android:dividerHeight="1dp"
          android:listSelector="@drawable/list_selector" /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p><strong>My Java code</strong> in onCreate of Activity class (I am extending from Activity class and not ListActivity):</p>
  
  <pre><code>        super.onCreate(savedInstanceState);
          setContentView(R.layout.main);
  ListView list=(ListView)findViewById(R.id.list);
  ArrayList&lt;HashMap&lt;String, String&gt;&gt; categoriesList = new ArrayList&lt;HashMap&lt;String, String&gt;&gt;();
  
          for(int i=0;i&lt;119;i++) {
              HashMap&lt;String, String&gt; map = new HashMap&lt;String, String&gt;();
              map.put(KEY_ID, String.valueOf(i));
              //map.put(KEY_TITLE, "hello");
              map.put(KEY_TITLE, Prayer.tip.getNthLine(i, true).replace("~", ""));
              map.put(KEY_ARTIST, "");
              map.put(KEY_DURATION, "");
              map.put(KEY_THUMB_URL, String.valueOf(getResources().getIdentifier("img" + i, "drawable", getPackageName())));
              categoriesList.add(map);
  
          }
          LazyAdapter adapter=new LazyAdapter(this, categoriesList);
          list.setAdapter(adapter);
  
          list.setFastScrollEnabled(true);
  </code></pre>
  
  <p>I haven't posted code of LazyAdapter as I think it has nothing to do with the styling of that fast thumb scrollbar. If required, I can post that code too.</p>