android button in a class that extends ListActivity
<p>In a class that extends ListActivity where each item I am creating appears as multiple items. I want to have "only one" button at the bottom of my UI....The problem is, when I create that button it appears as a list of buttons which is not what i want...I only need one button....can anyone help?
Here's my code,</p>

<pre><code>public class ListViewActivity extends ListActivity implements OnCheckedChangeListener {

TextView label;
CheckBox checkBox;
private ArrayList&lt;Boolean&gt; status = new ArrayList&lt;Boolean&gt;();

public class MyCustomAdapter extends ArrayAdapter&lt;String&gt; {


public MyCustomAdapter(Context context, int textViewResourceId,
  String[] objects) {

    super(context, textViewResourceId, objects);

    for (int i = 0; i &lt; objects.length; i++) {
        status.add(false);
    }
  // TODO Auto-generated constructor stub
 }

@Override
public View getView(final int position, View convertView, ViewGroup parent) {
 // TODO Auto-generated method stub
 //return super.getView(position, convertView, parent);

 View row = convertView;

 if(row==null){
  LayoutInflater inflater=getLayoutInflater();
  row=inflater.inflate(R.layout.main, parent, false); 

 }  


 label=(TextView)row.findViewById(R.id.months);
 label.setText(month[position]);



 checkBox=(CheckBox)row.findViewById(R.id.checkBox);
 checkBox.setFocusable(false);
 checkBox.setOnCheckedChangeListener(new OnCheckedChangeListener() {

 @Override
 public void onCheckedChanged(CompoundButton buttonView,boolean isChecked) {

         String event = null;

         if (isChecked) 
         {
         status.set(position, true);
         event = " just checked!";
         } 

        else 
         {
         status.set(position, false);
         event = " just unchecked!";
         }

         Toast.makeText(getApplicationContext(), "checkbox " + position +event,    Toast.LENGTH_SHORT).show();   

 }
 });
 checkBox.setChecked(status.get(position));



 return row;
}
}

String[] month = {
    "January", "February", "March", "April",
    "May", "June", "July", "August",
    "September", "October", "November", "December"
  };

 /** Called when the activity is first created. */
 @Override
 public void onCreate(Bundle savedInstanceState) {
 super.onCreate(savedInstanceState);
 // setContentView(R.layout.main);
 /*setListAdapter(new ArrayAdapter&lt;String&gt;(this,
   R.layout.row, R.id.weekofday, DayOfWeek));*/


   setListAdapter(new MyCustomAdapter(ListViewActivity.this, R.layout.main, month));


   //here are the button I am talking about     
   Button saveButton = (Button) this.findViewById(R.id.button1);




  }


  }
</code></pre>
