title: Show numbers in ProgressBar
body: <p>I have a ProgressBar.
  It works ok but I need to show the max value and the current value.
  They are not there.</p>
  
  <p>Do I need to change to a ProgressDialog?</p>
  
  <p>Clarification:</p>
  
  <p>I am showing a ProgressBar.
  The bar comes up perfectly but I want the numbers to appear as well.
  So, for example, it the max is 1000 the current point is 300 then I want 1000 to appear and the end of the bar and 300 to appear somewhere on the bar or just below it.</p>
  
  <p>I am using this class as the List Adaptor for the filling of an ListView.
  The line displayed depends on the type of data in the Array of "awards".
  When doing a ProgressBar it appears without the numbers.</p>
  
  <p>Code:</p>
  
  <pre><code>private class AwardsAdapter extends ArrayAdapter &lt;AwardItem&gt;{
  
  
      private ArrayList&lt;AwardItem&gt; awards = new ArrayList&lt;AwardItem&gt;();
  
      public AwardsAdapter(Context context, int textViewResourceId, ArrayList&lt;AwardItem&gt; awards) {
          super(context, textViewResourceId,awards);
          this.awards = awards;
          // TODO Auto-generated constructor stub
      }
  
      public View getView(int position, View convertView, ViewGroup parent) {
          View v = convertView;
          if (v == null) {
              LayoutInflater vi = (LayoutInflater)AwardsActivity.this.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
              v = vi.inflate(R.layout.awards_row, parent, false);
          }
          AwardItem award = awards.get(position);
          ProgressBar pb = (ProgressBar) v.findViewById(R.id.pgbAwardProgress);
  
          if(award.award_type == PROGRESSIVE) {
              pb.setVisibility(View.VISIBLE);
              pb.setMax(award.requirement);
              pb.setProgress(award.current_amount);
              pb.setIndeterminate(false);
  
          } else {
              pb.setVisibility(View.GONE);
          }
          ((TextView) v.findViewById(R.id.tvwShortMessage)).
                        setText(MessageBuilder.buildMessage(AwardsActivity.this, award.award_text, 
                                Integer.valueOf(award.requirement).toString()));
  
          return v;
      }
  
  }
  </code></pre>
  
  <p>Layout</p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 
   android:layout_width="fill_parent"
   android:layout_height="wrap_content"&gt;
  &lt;TextView android:id="@+id/tvwShortMessage"
  android:typeface="sans"
  android:textSize="14sp"
  android:textStyle="italic"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"/&gt;
  &lt;TextView android:id="@+id/tvwLongMessage"
  android:typeface="sans"
  android:textSize="14sp"
  android:textStyle="italic"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"
  android:layout_below="@id/tvwShortMessage"/&gt;
  &lt;LinearLayout 
  android:layout_width="fill_parent"
  android:layout_height="wrap_content"    
  android:layout_marginBottom="15dp" 
  android:layout_below="@id/tvwLongMessage"&gt;
  &lt;ProgressBar
  android:id="@+id/pgbAwardProgress"
  android:layout_width="fill_parent"
  android:layout_height="wrap_content"    
  style="?android:attr/progressBarStyleHorizontal"
  android:layout_marginRight="5dp" 
  android:layout_marginTop="5dp" 
  android:layout_marginBottom="15dp" 
  android:layout_alignParentTop="true"/&gt;
  &lt;/LinearLayout&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>This is the final screen.
  It is a list of a series of tasks and their progress so far.
  Each "line" is a separate progressbar.</p>
  
  <p><img src="https://i.stack.imgur.com/2Ahxd.png" alt="enter image description here"></p>