title: The constructor ArrayAdapter<string> is undefined
body: <p>I have a method, <code>initializeViews</code>, which encounters an <strong><code>ArrayAdapter constructor undefined</code> error</strong> in its last line. </p>
  
  <p>The method is located in <code>F1Fragment</code>, which extends <code>MainFragment</code>. <code>MainFragment</code> is then attached to an <code>Activity</code>. </p>
  
  <p>Can we not give the context of a <code>Fragment</code> in the <code>ArrayAdapter&lt;string&gt;</code> constructor? I am new to Android. Please correct me. Thanks in advance.</p>
  
  <pre><code>private void initializeViews(RelativeLayout contentLayout) {
      leaguesListView = ( ListView ) contentLayout.findViewById ( R.id.leaguesListView );
      progressLinear  =   (LinearLayout) contentLayout.findViewById ( R.id.progressLeagues );
      values= new String[] { "RedBullRacing", "McLaren", "Lotus",
        "ForceIndia", "HRT", "Ferrari" };
      adapter= new ArrayAdapter&lt;String&gt;(F1Fragment.this, android.R.layout.simple_list_item_1, android.R.id.text1, values);
  }
  </code></pre>