title: How to put a number before ListView item in Android
body: <p>In my list the data is shown like this,</p>
  
  <pre><code>test 1
  test 2
  test 3
  </code></pre>
  
  <p>But I want to show them like,</p>
  
  <pre><code>1) test 1
  2) test 2
  3) test 3
  </code></pre>
  
  <p>How can I do that. Plese help. This is the code I have done so far.</p>
  
  <pre><code>public class AppointmentList extends Activity{
  
      protected void onCreate(Bundle savedInstanceState){
          super.onCreate(savedInstanceState);
          setContentView(R.layout.select_to_delete);
  
          String[] myStringArray = new String[] { "test 1", "test 2", "test 3"};
  
          ArrayAdapter&lt;String&gt; adapter = new ArrayAdapter&lt;String&gt;(this, 
                  android.R.layout.simple_list_item_1, myStringArray);
  
          ListView listView = (ListView) findViewById(R.id.listView1);
          listView.setAdapter(adapter);
      }
  
  }
  </code></pre>