How to change the progress drawable of SeekBar dynamically from the program?
<p>I would like to change the color of the progress (not the <code>SeekBar</code> background) of a <code>SeekBar</code> dynamically from the program.</p>

<p>Using <code>seekbar.setProgressDrawable(Drawable drawable)</code> only changes the background of the <code>SeekBar</code>. All the examples I've seen make use of drawables from XML which are static at runtime.</p>

<p>The color changes according to some user activity and I need to set this to the progress drawable of the seekbar. So I'm programming my own drawable in my code.</p>

<p>In XML, we can specify the item IDs (such as background, progress, etc.) to get a drawable? How to achieve this in program?</p>
