Unable to programmatically change width of horizontal progressbar
<p>I would like change the width of a Horizontal Progressbar programmatically (initial size is set in XML using RelativeLayout...but I would like to dynamically change it based on certain values).</p>

<p>I have tried setMinimumWidth(50) in my code, but that did not make a difference.  I have also tried setting 'android:layout_width="wrap_content", but that did not work either.</p>

<p>Here is my XML:</p>

<pre><code>&lt;ProgressBar android:id="@+id/progress_horizontal"
     style="?android:attr/progressBarStyleHorizontal"
     android:layout_width="100dip"
     android:layout_height="wrap_content" 
/&gt;
</code></pre>

<p>Thanks in advance for any assistance!</p>
