title: SimpleCursorAdapter can't find my custom view of list in arguments - Android
body: <p>I would like to create my custom list view of items in my database. Unfortunately when I try to declare <code>SimpleCursorAdapter</code> it can't find my custom list.
  There is fragment when I declare <code>SimpleCursorAdapter</code> :</p>
  
  <pre><code>cursor = db.query("SERIAL",new String[]{"_id","NAZWA","SERWIS"},null,null,null,null,null);
  if(cursor.moveToFirst())
  {
      SimpleCursorAdapter listAdapter = new SimpleCursorAdapter(this, android.R.layout.my_custom_list,
              cursor,
              new String[]{"NAZWA","SERWIS"},
              new int[]{android.R.id.text1,android.R.id.text2},
              0);
      listViewSeriale.setAdapter(listAdapter); // List listViewSeriale = (ListView) findViewById(R.id.listViewSeriale);
  }
  </code></pre>
  
  <p>It work for <code>simple_list_item_2</code> but I have more items in my database than two...</p>
  
  <p>content_activity_baza_danych.xml &lt;-- file where is id <code>listViewSeriale</code> :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      app:layout_behavior="@string/appbar_scrolling_view_behavior"&gt;
  
  
      &lt;ListView
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:id="@+id/listViewSeriale" /&gt;
  </code></pre>
  
  <p></p>
  
  <p>my_custom_list.xml :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  
  &lt;LinearLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:orientation="vertical"
      android:textAlignment="gravity"
      &gt;
  
  
      &lt;TextView
          android:id="@+id/textNazwa"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:text="TextView" /&gt;
  
      &lt;TextView
          android:id="@+id/textSerwis"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:text="TextView" /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>error: cannot find symbol
              SimpleCursorAdapter listAdapter = new SimpleCursorAdapter(this, android.R.layout.my_custom_list,
                                                                                              ^
    symbol:   variable my_custom_list
  </code></pre>
  
  <p>I think solution is very simple but I'm new in android and don't understand many things.</p>