title: Custom text view adapter not working on list view
body: <p>I'm trying to use a custom text view for the items in my list but when deploying my app it doesn't appear.</p>
  
  <p><strong>fragment class</strong></p>
  
  <pre><code>public class FragmentMainList extends android.support.v4.app.Fragment {
  
      ListView list_main;
  
      public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState){
          View v = inflater.inflate(R.layout.fragment_main_list, container, false);
  
          String[] listContent = {
              getActivity().getResources().getString(R.string.item_0),
              getActivity().getResources().getString(R.string.item_1),
              getActivity().getResources().getString(R.string.item_2)
          };
  
          list_main = (ListView)v.findViewById(R.id.list_main);
          ArrayAdapter adapter = new ArrayAdapter(getActivity(),R.layout.list_item,listContent);
          list_main.setAdapter(adapter);
  
          return v;
      }
  }
  </code></pre>
  
  <p><strong>list_item.xml</strong></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="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical" &gt;
  
      &lt;TextView
          android:id="@+id/list_item"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:padding="12dp"
          android:textAppearance="?android:attr/textAppearanceLarge" /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>I know the line of below has something to do with it, but I don't know what to change it to:</p>
  
  <blockquote>
    <p>ArrayAdapter adapter = new ArrayAdapter(getActivity(),R.layout.list_item,listContent);
                list_main.setAdapter(adapter);</p>
  </blockquote>