title: Smooth circular progress bar
body: <p>I am using a circular progressbar which has a countdown timer for 10mins. Progressbar is working fine but it is not smooth.Below is my code for circular progress bar.</p>
  
  <pre><code>public class MainActivity extends AppCompatActivity {
      ProgressBar barTimer;
      CountDownTimer countDownTimer;
      TextView textTimer;
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
          barTimer = findViewById(R.id.barTimer);
  
          barTimer.setProgress(100);
         barTimer.setMax(100);
          startTimer(10);
  
      }
  
      private void startTimer(final int minuti) {
          countDownTimer = new CountDownTimer(60 * minuti * 1000, 1000) {
              @Override
              public void onTick(long leftTimeInMilliseconds) {
  
                  long seconds = leftTimeInMilliseconds / 6000;
  
                  barTimer.setProgress((int)seconds);
  
              }
              @Override
              public void onFinish() {
  
              }
          }.start();
  
      }
      }
  </code></pre>
  
  <p>Can anyone please help me how to make the progressbar smooth.</p>