title: Error "Cannot resolve symbol 'listView'" for a CustomListAdapter
body: <p>I am currently working on a basic custom ListAdapater.<br>
  On my MainActivity, it shows this error when trying to find my ListView from my XML file.</p>
  
  <p>Here is my MainActivity.java:</p>
  
  <pre><code>public class MainActivity extends ListActivity {
  
      ListView list;
  
      String[] itemName = {
              "Item 1",
              "Item 2",
              "Item 3"
      };
      String [] itemContent = {
              "Item Content 1",
              "Item Content 2",
              "Item Content 3"
      };
  
      Integer[] imageId = {
              R.mipmap.pic1,
              R.mipmap.pic2,
              R.mipmap.pic3,
      };
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
  
          CustomListAdapter adapter = new CustomListAdapter(this, itemName, itemContent, imageId);
          list = (ListView)findViewById(R.id.list);
          list.setAdapter(adapter);
  
          list.setOnItemClickListener(new AdapterView.OnItemClickListener() {
              @Override
              public void onItemClick(AdapterView&lt;?&gt; adapterView, View view, int position, long id) {
                  String SelectedItem = itemName[+position];
                  Toast.makeText(getApplicationContext(), SelectedItem, Toast.LENGTH_SHORT).show();
              }
          });
      }
  }
  </code></pre>
  
  <p>and here is the XML:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:id="@+id/activity_main"
      android:layout_width="match_parent"
  
      &lt;ListView
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:id="@android:id/list"
          android:layout_centerHorizontal="true" /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>I actually had a different error before for this issue <a href="https://stackoverflow.com/questions/11050817/your-content-must-have-a-listview-whose-id-attribute-is-android-r-id-list">here</a>.<br>
  My code showed completely fine apart from the error with the <code>android:id</code>, and this fixed this particular issue, but I now have the error with the <code>R.id.list</code>.</p>
  
  <p>I also tried the suggestion of just Activity and dropping the keyword <code>android</code> in the XML.<br>
  Also fixed my old error but not this one.<br>
  I have just posted my original code however.</p>