title: Adding padding to bottom of ListView
body: <p>I have a ListView that is being populated with a custom adapter. I'd like to add padding to the last item in the list, to accommodate ads, so the ads do not cover the last item when you scroll to the bottom.  The only layout I have is the layout for each row of the ListView:</p>
  
  <pre><code>&lt;RelativeLayout 
   xmlns:android="http://schemas.android.com/apk/res/android"
  style="@style/BaseStyle"
  android:orientation="vertical"
  android:paddingLeft="5dip"
  android:paddingRight="5dip"
  android:paddingTop="8dip"
  android:paddingBottom="8dip"
    &gt;  
  
   &lt;TextView  
      android:id="@+id/text"
      style="@style/BaseStyle.Title"
  /&gt;
  
   &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>Other than that I just have my custom adapter code that is populating the ListView.  Not sure if I need to include any other code to help with the question.</p>
  
  <p>Edit, I don't have a main layout, this is how I'm populating my ListView:</p>
  
  <pre><code> public class Main extends ListActivity {
   private CustomAdapter adapter;
   private String[] items = {};
  
   @Override     
   public void onCreate(Bundle icicle) {
        super.onCreate(icicle);
  
        adapter = new CustomAdapter();
  
        items = PopulateItems();
  
        for (String item : items)
             adapter.addItem(item);
  
        this.setListAdapter(adapter);
        adapter.notifyDataSetChanged();
   }
  
   private class CustomAdapter extends BaseAdapter {
   private String[] mData;
   private LayoutInflater mInflater;
  
   public CustomAdapter() {
        mInflater = (LayoutInflater)getSystemService(Context.LAYOUT_INFLATER_SERVICE);
   }
  
   public void addItem(String item) {
        mData.add(item);
   }
  
   @Override
   public int getCount() {
        return mData.size();
   }
  
   @Override
   public Object getItem(int position) {
        return mData.get(position);
   }
  
   @Override
   public long getItemId(int position) {
        return position;
   }
  
   @Override
   public View getView(int position, View convertView, ViewGroup parent)
   {
        ViewHolder holder;
        String item = (String)this.getItem(position);
  
        if (convertView == null)
        {         
             holder = new ViewHolder();
  
             convertView = mInflater.inflate(R.layout.main, parent, false);
             holder.text = (TextView)convertView.findViewById(R.id.text);
             convertView.setTag(holder);
        } else {
             holder = (ViewHolder)convertView.getTag();
        }
        TextView tvText = holder.text;
        tvText.setText(item);
   }
  
   static class ViewHolder {
        TextView text;
   }
  </code></pre>