Customize Android SeekBar colors

Create the progress_bar.xml. You can define progress and background colors.

<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:id="@android:id/background">
<shape>
<solid android:color="#FF0000" />
</shape>
</item>
<item android:id="@android:id/progress">
<clip>
<shape>
<solid android:color="#00FF00" />
</shape>
</clip>
</item>
</layer-list>

In the Activity,

SeekBar mSeekBar = (SeekBar) findViewById(R.id.seekBar1);
mSeekBar.setProgressDrawable(getResources()
.getDrawable(R.drawable.progressbar));

device-2014-07-11-112803

You can set the minHeight and maxHeight to make the progress bar thinner.

<SeekBar
 android:id="@+id/seekBar1"
 android:layout_width="match_parent"
 android:layout_height="wrap_content"
 android:minHeight="3dip"
 android:maxHeight="3dip"
 android:layout_margin="20dip"/>

device-2014-07-11-112902