title: Error inflating class android.widget.ListView when setting ContentView of Activity
body: <p>first of all i know there are already two post dealing with the same issue. But none of their solutions worked for me.
  <a href="https://stackoverflow.com/questions/11837932/error-inflating-class-android-widget-listview">Error inflating class android.widget.listview</a>
  and
  <a href="https://stackoverflow.com/questions/62569633/android-app-stopped-error-inflating-class-android-widget-listview">Android App Stopped Error :inflating class android.widget.ListView</a></p>
  <p>In my case the error also happens when setContentView() of the onCreate() of my Activity get´s called.
  This is the exception:</p>
  <pre><code>E/ChecklistActivity: Binary XML file line #5 in de.bigunet.varionote:layout/activity_checklist: Binary XML file line #5 in de.bigunet.varionote:layout/activity_checklist: Error inflating class android.widget.ListView
  W/System.err: android.view.InflateException: Binary XML file line #5 in de.bigunet.varionote:layout/activity_checklist: Binary XML file line #5 in de.bigunet.varionote:layout/activity_checklist: Error inflating class android.widget.ListView
  W/System.err: Caused by: android.view.InflateException: Binary XML file line #5 in de.bigunet.varionote:layout/activity_checklist: Error inflating class android.widget.ListView
  W/System.err: Caused by: java.lang.reflect.InvocationTargetException
  W/System.err:     at java.lang.reflect.Constructor.newInstance0(Native Method)
  W/System.err:     at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
  W/System.err:     at android.view.LayoutInflater.createView(LayoutInflater.java:852)
  W/System.err:     at android.view.LayoutInflater.createView(LayoutInflater.java:774)
  W/System.err:     at com.android.internal.policy.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:58)
  W/System.err:     at android.view.LayoutInflater.onCreateView(LayoutInflater.java:928)
  W/System.err:     at android.view.LayoutInflater.onCreateView(LayoutInflater.java:948)
  W/System.err:     at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:1002)
  W/System.err:     at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:959)
  W/System.err:     at android.view.LayoutInflater.rInflate(LayoutInflater.java:1121)
  W/System.err:     at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1082)
  W/System.err:     at android.view.LayoutInflater.inflate(LayoutInflater.java:680)
  W/System.err:     at android.view.LayoutInflater.inflate(LayoutInflater.java:532)
  W/System.err:     at android.view.LayoutInflater.inflate(LayoutInflater.java:479)
  W/System.err:     at androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:706)
  W/System.err:     at androidx.appcompat.app.AppCompatActivity.setContentView(AppCompatActivity.java:195)
  W/System.err:     at com.bigunet.varionote.ChecklistActivity.onCreate(ChecklistActivity.java:46)
  W/System.err:     at android.app.Activity.performCreate(Activity.java:8207)
  W/System.err:     at android.app.Activity.performCreate(Activity.java:8191)
  W/System.err:     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1309)
  W/System.err:     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3800)
  W/System.err:     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4003)
  W/System.err:     at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)
  W/System.err:     at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
  W/System.err:     at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
  W/System.err:     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2317)
  W/System.err:     at android.os.Handler.dispatchMessage(Handler.java:106)
  W/System.err:     at android.os.Looper.loop(Looper.java:246)
  W/System.err:     at android.app.ActivityThread.main(ActivityThread.java:8595)
  W/System.err:     at java.lang.reflect.Method.invoke(Native Method)
  W/System.err:     at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
  W/System.err:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)
  W/System.err: Caused by: android.content.res.Resources$NotFoundException: Text array resource ID #0x7f0c0032
  W/System.err:     at android.content.res.Resources.getTextArray(Resources.java:728)
  W/System.err:     at android.content.res.TypedArray.getTextArray(TypedArray.java:1063)
  W/System.err:     at android.widget.ListView.&lt;init&gt;(ListView.java:269)
  W/System.err:     at android.widget.ListView.&lt;init&gt;(ListView.java:258)
  W/System.err:     at android.widget.ListView.&lt;init&gt;(ListView.java:254)
  W/System.err:   ... 32 more
  </code></pre>
  <p>Here is the onCreate() of my Activity:</p>
  <pre><code>public class ChecklistActivity extends AppCompatActivity {
      private static final String TAG = &quot;ChecklistActivity&quot;;
  
      private ChecklistAdapter adapter;
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          try {
                  super.onCreate(savedInstanceState);
                  setContentView(R.layout.activity_checklist);
  
                  adapter = new ChecklistAdapter(this);
                  checkListView = (ListView) findViewById(R.id.checkList);
                  checkListView.setAdapter(adapter);
                  checkListView.setEnabled(true);
              }
          } catch (Exception e) {
              Log.e(TAG, e.getMessage());
              e.printStackTrace();
          }
      }
  }
  </code></pre>
  <p>Here´s the xml for the activity:</p>
  <pre><code>&lt;RelativeLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      android:layout_width=&quot;match_parent&quot;
      android:layout_height=&quot;match_parent&quot;&gt;
  
      &lt;ListView android:id=&quot;@+id/checkList&quot;
          android:layout_width=&quot;match_parent&quot;
          android:layout_height=&quot;match_parent&quot;
          android:entries=&quot;@layout/checklist_item&quot;&gt;
      &lt;/ListView&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  <p>And here is the xml for the checklist_item:</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;RelativeLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      android:id=&quot;@+id/layoutChecklistItem&quot;
      android:layout_width=&quot;match_parent&quot;
      android:layout_height=&quot;wrap_content&quot;
      android:clickable=&quot;true&quot;
      android:padding=&quot;10dp&quot;
      android:focusable=&quot;true&quot;&gt;
  
      &lt;TextView
          android:id=&quot;@+id/textViewCheckText&quot;
          android:layout_width=&quot;wrap_content&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:layout_alignParentStart=&quot;true&quot;
          android:layout_alignParentEnd=&quot;true&quot;
          android:clickable=&quot;true&quot;
          android:padding=&quot;5dp&quot;
          android:text=&quot;@string/checktext&quot;
          android:textColor=&quot;@color/black&quot;
          android:textSize=&quot;40sp&quot;
          android:focusable=&quot;true&quot; /&gt;
  
      &lt;TextView
          android:id=&quot;@+id/textViewCheckWert&quot;
          android:layout_width=&quot;wrap_content&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:layout_below=&quot;@+id/textViewCheckText&quot;
          android:layout_alignStart=&quot;@+id/textViewCheckText&quot;
          android:layout_alignParentEnd=&quot;true&quot;
          android:clickable=&quot;true&quot;
          android:padding=&quot;5dp&quot;
          android:text=&quot;@string/checkwert&quot;
          android:textSize=&quot;25sp&quot;
          android:textStyle=&quot;italic&quot;
          android:typeface=&quot;normal&quot;
          android:focusable=&quot;true&quot; /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  <p>I realy don´t get what´s wrong here...
  I would be interested if you guys run into the same problem as i do.
  Or am i missing something?
  Any help on this would be great!
  Thanks in advance.</p>
  <p>Morris</p>