Why does my ListView stack views on top of each other instead of vertically cascading downwards?
<p>I am returning a Custom View that extends RelativeLayout.</p>

<p>How can I fix this? Thanks.</p>

<p>This is the listview:</p>

<pre><code>&lt;ListView
        android:id="@+id/view_container"
        android:layout_below="@+id/optionBarContainer"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="-8px" 
        android:paddingBottom="5dp"
        &gt;
    &lt;/ListView&gt;
</code></pre>

<p>This is the adapter:</p>

<pre><code>public class OptionBarListViewArrayAdapter extends
        ArrayAdapter&lt;UserCheckpointBean&gt; {

    public OptionBarListViewArrayAdapter(Context context,
            UserCheckpointBean[] beans) {
        super(context, R.layout.checkpoint_tab, beans);
    }

    @Override
    public View getView(int position, View convertView, ViewGroup parent) {
        UserCheckpointBean userCheckpointBean = getItem(position);
        CheckpointTabView view = new CheckpointTabView(getContext());

        view.setData(userCheckpointBean);

        return view;
    }

}
</code></pre>
