title: Determinate circular progress bar in android
body: <p>I want to make a determinate progress bar but current code gives always indeterminated</p>
  
  <p>My XML</p>
  
  <pre><code>&lt;ProgressBar
          android:id="@+id/progressBar3"
          style="?android:attr/progressBarStyle"
          android:layout_width="70dp"
          android:layout_height="70dp"
          android:layout_centerHorizontal="true"
          android:layout_centerVertical="true"
          android:layout_weight="0.07"
          android:indeterminate="false"
          android:max="100"
          android:progress="20"
          /&gt;
  </code></pre>
  
  <p>My Code</p>
  
  <pre><code>holder.pb=rowView.findViewById(R.id.progressBar3);
  holder.pb.setIndeterminate(false);
  //holder.pb.setIndeterminateDrawable(null);
  holder.pb.setProgress(50);
  holder.pb.setMax(100);
  holder.pb.requestLayout();
  </code></pre>