title: Android progressbar setprogress() function doesn’t work
body: <p>I would setting progress of the progressbar in Android. But setprogress function doesn't work.</p>
  
  <p>Codes XML:</p>
  
  <pre><code>&lt;ProgressBar
          android:id="@+id/hamlebar"
          android:layout_width="140dp"
          android:layout_height="25dp"
          android:progressDrawable="@drawable/progressbarr"
          android:layout_centerHorizontal="true"
          style="@style/Widget.AppCompat.ProgressBar.Horizontal"
          android:layout_below="@+id/oyunhamletv"
          android:layout_marginTop="25dp"
  /&gt;
  
  &lt;TextView
          android:id="@+id/bartext"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="Hamle"
          android:textStyle="bold"
          android:layout_alignStart="@+id/hamlebar"
          android:layout_alignEnd="@+id/hamlebar"
          android:layout_alignTop="@+id/hamlebar"
          android:layout_alignBottom="@+id/hamlebar"
  
  /&gt;
  </code></pre>
  
  <p>Progress drawable codes (progressbarr.xml) :</p>
  
  <pre><code>&lt;layer-list xmlns:android="http://schemas.android.com/apk/res/android"&gt;
  
  &lt;item android:id="@android:id/background"&gt;
      &lt;shape&gt;
          &lt;gradient
                  android:startColor="#ffffff"
                  android:centerColor="#ffffff"
                  android:centerY="0.75"
                  android:endColor="#ffffff"
                  android:angle="270"
          /&gt;
      &lt;/shape&gt;
  &lt;/item&gt;
  
  &lt;item android:id="@android:id/secondaryProgress"&gt;
      &lt;clip&gt;
          &lt;shape&gt;
              &lt;gradient
                      android:startColor="#234"
                      android:centerColor="#234"
                      android:centerY="0.75"
                      android:endColor="#a24"
                      android:angle="270"
              /&gt;
          &lt;/shape&gt;
      &lt;/clip&gt;
  &lt;/item&gt;
  
  &lt;item android:id="@android:id/progress"&gt;
      &lt;clip&gt;
          &lt;shape&gt;
              &lt;gradient
                      android:startColor="#144281"
                      android:centerColor="#0b1f3c"
                      android:centerY="0.75"
                      android:endColor="#f6101d"
                      android:angle="270"
              /&gt;
          &lt;/shape&gt;
      &lt;/clip&gt;
  &lt;/item&gt;
  
  &lt;/layer-list&gt;
  </code></pre>
  
  <p>Set progress codes (Java codes) :</p>
  
  <pre><code>hamlebar.setMax(oyunhamle);
  oyunhamle = oyunhamle - 1;
  hamlebar.setProgress(0);
  hamlebar.setProgress(oyunhamle);
  </code></pre>
  
  <p>Note : I don’t had a good English. I hope you can understand. Pardon me.</p>
  
  <p>How I can resolve this problem?</p>