title: Custom adapter not displaying output
body: <p>I've been battling with a simple applying a custom adapter to a listview for a few days now, hopefully, someone can help me where I'm going wrong.</p>
  
  <p>I have a ListView (listViewAsItHappens) and I want to use a custom adapter to the view so I can format the look of the ListView. I have read lots of articles but none seem to appear to work as expected.</p>
  
  <p>When I debug the code, it steps to the adapter but there's nothing displayed in the ListView. I'm getting no errors and it looks like all variables/objects are passing along nicely.</p>
  
  <p>Any help in helping me getting the ListView to display the 3 lines of text and images will be great.</p>
  
  <pre><code>ListView list;
  String[] itemname ={
          "Whistle",
          "Football",
          "Card"
  };
  
  Integer[] imgid={
          R.drawable.ic_whistle,
          R.drawable.ic_football,
          R.drawable.ic_yellowcard
  };
  
  public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
      View view = inflater.inflate(R.layout.fragment_refscorecard, container, false);
      list=(ListView) view.findViewById(R.id.listViewAsItHappens);
      asItHappened adapter=new asItHappened(getActivity(), itemname, imgid);
      list.setAdapter(adapter);
      adapter.notifyDataSetChanged();
  </code></pre>
  
  <p>My custom adapter (asithappens_listview is my XML layout);</p>
  
  <pre><code>public class asItHappened extends ArrayAdapter&lt;asItHappened_List&gt; {
  private Activity context;
  private String[] eventType;
  private final Integer[] imgid;
  
  public asItHappened(Context context, String[] event, Integer[] icon) {
      super(context, R.layout.asithappens_listview);
      this.eventType=event;
      this.imgid=icon;
  }
  
  @NonNull
  @Override
  public View getView(int position, @Nullable View convertView, @NonNull ViewGroup parent) {
      LayoutInflater inflater=context.getLayoutInflater();
      View rowView=inflater.inflate(R.layout.asithappens_listview, null,true);
      TextView txtTitle = (TextView) rowView.findViewById(R.id.txtEvent);
      ImageView imageView = (ImageView) rowView.findViewById(R.id.imgEvent);
      rowView.findViewById(R.id.textView1);
      txtTitle.setText(eventType[position]);
      imageView.setImageResource(imgid[position]);
     return rowView;
    }
  }
  </code></pre>