title: The getView() method of ArrayAdapter is not getting called
body: <p>I am very new to android development. I am trying to a build an application with tags (which are added through fragments). In one of the fragments, I am trying to display a list. This list has been populated using ListAdapter which I have extended from ArrayAdapter and I have overloaded getView() method.
  This is my fragment</p>
  
  <pre><code>public class tabcontentActivity extends Fragment {
  
      public View onCreateView(LayoutInflater inflater, ViewGroup container,
          Bundle savedInstanceState) {
          if (container == null) {
              return null;
          }
          View v = (LinearLayout) inflater.inflate(R.layout.tablayout, container,
              false);
          ListView lv = (ListView) v.findViewById(R.id.listview1);
          ListViewAdapter adapter = new ListViewAdapter(container.getContext(),
              android.R.layout.simple_list_item_1, R.id.textview1);
          adapter.notifyDataSetChanged();
          lv.setAdapter(adapter);
  
          return v;
      }
  }
  </code></pre>
  
  <p>And this is how I have implemented the ListAdapter</p>
  
  <pre><code>public class ListViewAdapter extends ArrayAdapter {
      Context context1;
  
      public ListViewAdapter(Context context,int resource, int textViewResourceId) {
          super(context,resource,textViewResourceId);
          this.context1 = context;
          System.out.println("here aswell!!!!!!");
          // TODO Auto-generated constructor stub
      }
  
      public View getView(int arg0, View convertView, ViewGroup arg2) {
          // TODO Auto-generated method stub
          System.out.println("@@@I AM HERE@@@");
          LayoutInflater inflater = LayoutInflater.from(context1);
          convertView = inflater.inflate(R.layout.tablayout, null);
  
          TextView wv = (TextView) convertView.findViewById(R.id.textview1);
          String summary = "&lt;html&gt;&lt;body&gt;&lt;h1&gt;This is happening!!!&lt;/h1&gt;&lt;/body&gt;&lt;/html&gt;";
          wv.setText(Html.fromHtml(summary));
  
          convertView.setTag(wv);
  
          return convertView;
      }
  }
  </code></pre>
  
  <p>The layout xml is</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="fill_parent"
      android:layout_height="fill_parent"
      android:orientation="vertical" &gt;
  
      &lt;ListView
          android:id="@+id/listview1"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent" &gt;
      &lt;/ListView&gt;
  
      &lt;TextView
          android:id="@+id/textview1"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"
          android:text="myreader" /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Please help me to find a way by which I can make this work.</p>