title: When putting listview inside a RelativeLayout it always looking for R.id.list
body: <p>I was trying to put an imageview and a listview inside a relative layout, but i'm always having an error like this </p>
  
  <pre><code>Your content must have a ListView whose id attribute is 'android.R.id.list'
  </code></pre>
  
  <p>then i tried just putting ListView as the parent and it works but i want to display an image above the listview.</p>
  
  <p>here is my xml</p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:orientation="vertical" android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:background="#ffffffff"&gt;
  
  &lt;ImageView
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:id="@+id/header"
      android:layout_gravity="center_horizontal"
      android:background="@drawable/header" /&gt;
  
  &lt;ListView
      android:id="@+id/list"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content" &gt;
  &lt;/ListView&gt;
  </code></pre>
  
  <p></p>
  
  <p>Here is my fragment </p>
  
  <pre><code>public class Tab_About extends ListFragment{
  
  @Override
  public View onCreateView(LayoutInflater inflater, ViewGroup container,
                           Bundle savedInstanceState) {
      View rootView = inflater.inflate(R.layout.tab_about, container,
              false);
  
      Resources res = getResources();
  
      final String[] values = res.getStringArray(R.array.about_list);
      Integer imageId = R.drawable.accessory_arrow;
  
      ListView list = (ListView)rootView.findViewById(R.id.list);
  
      CustomListAdapter cus = new CustomListAdapter(getActivity(),values, imageId);
      list.setAdapter(cus);
  
  
      AdapterView.OnItemClickListener itemClickListener = new AdapterView.OnItemClickListener() {
          @Override
          public void onItemClick(AdapterView&lt;?&gt; parent, View view, int position, long id) {
              Context context = getActivity().getApplicationContext();
              CharSequence text = "You clicked " + position;
              int duration = Toast.LENGTH_SHORT;
  
              Toast toast = Toast.makeText(context, text, duration);
              toast.show();
          }
      };
  
      // Setting the item click listener for the listview
      list.setOnItemClickListener(itemClickListener);
  
      return rootView;
  }
  }
  </code></pre>
  
  <p>how can i do it? thank you for the help </p>