[Android Themes] lacoursiere18:
Sorry havent forgot about you...

Ok lets take a look inside of framework-res...go into drawables and find that png.. Hint: fastscroll_thumb.....

Now that we found it lets duplicate it.. than change the duplicates color..

Now we need to find how the system calls it.. What I did was use Notepadd++ and search for that png.. It pops up in drawables folder under fastscroll_thumb_holo.xml.. So we see the pngs it uses.. Good.. moving on..

Now lets search that xml.. When we do this it pops up under styles.xml.. That what we want!

We notice that Theme.Holo and Theme.Holo.Light call it the same way.. both through that xml : fastscroll_thumb_holo.xml. So in order to change the Light one to use a different png we are going to have it call a new xml that we will make.. So lets see how it looks in styles:

Theme.Holo

<item name="buttonBarButtonStyle">?borderlessButtonStyle</item>
<item name="segmentedButtonStyle">@style/Holo.Light.SegmentedButton</item>
[COLOR="Red"]<item name="fastScrollThumbDrawable">@drawable/fastscroll_thumb_holo</item>[/COLOR]
<item name="fastScrollPreviewBackgroundLeft">@drawable/fastscroll_label_left_holo_light</item>
<item name="fastScrollPreviewBackgroundRight">@drawable/fastscroll_label_right_holo_light</item>

Theme.Holo.Light

<item name="buttonBarButtonStyle">?borderlessButtonStyle</item>
<item name="segmentedButtonStyle">@style/Holo.Light.SegmentedButton</item>
[COLOR="red"]<item name="fastScrollThumbDrawable">@drawable/fastscroll_thumb_holo</item>[/COLOR]
<item name="fastScrollPreviewBackgroundLeft">@drawable/fastscroll_label_left_holo_light</item>
<item name="fastScrollPreviewBackgroundRight">@drawable/fastscroll_label_right_holo_light</item>

Same right? Lets change that:

Theme.Holo.Light:

<item name="buttonBarButtonStyle">?borderlessButtonStyle</item>
<item name="segmentedButtonStyle">@style/Holo.Light.SegmentedButton</item>
[COLOR="red"]<item name="fastScrollThumbDrawable">@drawable/fastscroll_thumb_holo_[B]light[/B]</item>[/COLOR]
<item name="fastScrollPreviewBackgroundLeft">@drawable/fastscroll_label_left_holo_light</item>
<item name="fastScrollPreviewBackgroundRight">@drawable/fastscroll_label_right_holo_light</item>

I just added "_light" to the end of its name.. Now lets make a new xml.. Just use the fastscroll_thumb_holo we found :

<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true" android:drawable="[B]@drawable/fastscroll_thumb_pressed_holo[/B]" />
<item android:drawable="[B]@drawable/fastscroll_thumb_default_holo[/B]" />
</selector>

Lets change those names:

<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true" android:drawable="@drawable/fastscroll_thumb_pressed_holo_[B]light[/B]" />
<item android:drawable="@drawable/fastscroll_thumb_default_holo_[B]light[/B]" />
</selector>

Save it then drop it into drawables folder..And make sure you rename the xml to: fastscroll_thumb_holo_light

So now where we made the duplicate of the pngs.. You need to change their names to match what is inside the xml we just created.. So their names should be:

fastscroll_thumb_pressed_holo_light

fastscroll_thumb_default_holo_light

Done..Now apps that use Theme.Holo will use the original and apps that use Theme.Light will use our new xml and images :highfive:

Questions??? Hit me!!