“ArrayAdapter requires the resource ID to be a TextView” issue
<p>I seem to have problems using custom styles for ListView.</p>

<p>All online searches (stackOverflow and other sites) pty much say the same: - create an my_style.xml layout file. - use it in the adapter.</p>

<p>But for some reason this doesn't seem to be working for me. 
MainAct.java:</p>

<pre><code>arrayAdapter = new ArrayAdapter&lt;String&gt;(this, android.R.layout.list_content, items);
</code></pre>

<p>XML file:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;TextView
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/textview"
    android:textAppearance="?android:attr/textAppearanceMedium"
    android:textColor="#0000DD"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    /&gt;
</code></pre>

<p>saved as /res/layout/list_content.xml.</p>

<p>If I use the android.R.layout.simple_list_item_1 everything works fine, with the own xml file I get "java.lang.IllegalStateException: ArrayAdapter requires the resource ID to be a TextView".</p>

<p>Any ideas?</p>

<p>PS: I already looked at lots of other very similar questions/issues, including: </p>

<p><a href="https://stackoverflow.com/questions/9280965/">&quot;ArrayAdapter requires the resource ID to be a TextView&quot; xml problems</a></p>

<p><a href="https://stackoverflow.com/questions/8921037/">How to set the text at center in ListView android application?</a> </p>

<p><a href="https://stackoverflow.com/questions/4533440/">Android ListView Text Color</a> </p>