title: Static horizontal progress bar android
body: <p>I want a static progress bar in android. I will calculate the percentage at the time of activity load and it should show that throughout the activity.</p>
  
  <p>Currently I have:-</p>
  
  <pre><code>&lt;ProgressBar
  style="?android:attr/progressBarStyleSmall"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"
  android:id="@+id/progressBar"
  android:layout_column="1" /&gt;
  </code></pre>
  
  <p>And I set the progress bar in the following way:-</p>
  
  <pre><code>ProgressBar progress = (ProgressBar) findViewById(R.id.progressBar);
  progress.setProgress(term);
  </code></pre>
  
  <p>Its not showing anything and just the loading circle keeps rotating. I jsut want the following to show up. Its just a static value.</p>
  
  <p>No it is not because I dont want an increasing percentage. I just want a static bar.</p>
  
  <p><a href="https://i.stack.imgur.com/U5sB4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/U5sB4.png" alt="enter image description here"></a></p>