title: Changing a divider with setDivider in a ListActivity without a custom ListView?
body: <p>I can't seem to get a customized divider, using a Drawable I've defined, to work when using a <code>ListActivity</code> and not creating a custom <code>ListView</code>.  It almost seems like when the VM creates its own <code>ListView</code> for me, with the <code>ListActivity</code>, it uses a theme with the default divider provided; and if I try to provide one, no dividers appear in the <code>ListView</code> at all.</p>
  
  <p>I know that I can create a custom <code>ListView</code> using XML and define android:divider on that <code>ListView</code>, and this does recognize my custom divider Drawable.  But I would prefer to just let the <code>ListActivity</code> create its own <code>ListView</code>, if I can figure out how to get my own divider working on it.</p>
  
  <p>Here's the code I'm using now:</p>
  
  <pre><code>public class Categories extends ListActivity {
  
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
  
          final String[] OPTIONS = {
              "Hello",
              "Goodbye",
              "Good Morning",
              "Greetings",
              "Toodaloo"
          };
  
          ArrayAdapter&lt;String&gt; adapter = new ArrayAdapter&lt;String&gt;(
              this, android.R.layout.simple_list_item_1, OPTIONS);
          setListAdapter(adapter);
  
          ListView lv = getListView();
          PaintDrawable sage = new PaintDrawable(R.drawable.sage);
          lv.setDivider(sage);
          lv.setDividerHeight(1);
      }
  }
  </code></pre>