title: How to set the width of a dynamically added ListView?
body: <p>I'm trying to add ListView's in dynamically but for some reason it is not letting me set the width of the ListView. I was wondering if you guys could help me out.</p>
  
  <p>I'm trying to build a column design (similar to Plume). Is this the best way to do it? </p>
  
  <p>Here's what I have:</p>
  
  <pre><code>package com.reditr.column;
  
  import java.util.HashMap;
  
  import android.view.ViewGroup;
  import android.widget.ListView;
  
  import com.reditr.connection.Reddit;
  
  public class ColumnManager {
  
  //some pointers to important vars
  private ViewGroup mContainer;
  private Reddit mConnection;
  private HashMap&lt;String, Column&gt; mColumns;
  
  public ColumnManager(ViewGroup parent, Reddit connection) {
  
      mContainer = parent;
      mConnection = connection;   
      mColumns = new HashMap&lt;String, Column&gt;();
  
              //creates listview here
      mColumns.put("reditr", new Column("/r/reditr", null, mConnection, mContainer, "reditr", null));
      buildColumn(mColumns.get("reditr"));
  
              //.getColumnView() returns the ListView Object
      mContainer.addView(mColumns.get("reditr").getColumnView()); 
      mColumns.get("reditr").run();
  
      mColumns.put("gaming", new Column("/r/gaming", null, mConnection, mContainer, "gaming", null));
      buildColumn(mColumns.get("gaming"));
      mContainer.addView(mColumns.get("gaming").getColumnView()); 
      mColumns.get("gaming").run();
  
  
  }
  
  private void buildColumn(Column column) {
  
      ListView columnView = column.getColumnView();
  
      columnView.setMinimumWidth(400);
      columnView.setMinimumHeight(ViewGroup.LayoutParams.MATCH_PARENT);
  
  }
  }
  </code></pre>