title: Android Listview - Custom Adapter not displaying anything
body: <p>Hi StackOverflow Community,</p>
  
  <p>I am stuck with a problem (stupid one, probably), where I couldn't figure out what is wrong with my ListView.  I have a custom adapter, and I am able to pass data to it, but it is not displaying anything.  Here is my code:</p>
  
  <pre><code>LayoutInflater mInflater = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
  
          View view = mInflater.inflate(R.layout.nutrition_main, null);
          listview = (ListView) view.findViewById(R.id.listView);
          // Pass the results into an ArrayAdapter
          ArrayAdapter adapter = new ArrayAdapter&lt;&gt;(getActivity(),
                  R.layout.listviewtextview);
  
          for (ParseObject calories : ob) {
              Log.i("Calories", calories.get("Calories").toString());
              adapter.add(calories.get("Calories") + "");
          }
  
          ArrayList&lt;String&gt; kapow = new ArrayList&lt;String&gt;();
          for(int i = 0; i &lt; adapter.getCount(); i++){
              String str = (String)adapter.getItem(i);
              kapow.add(str);
              Log.i("str", str);
          }
          SomeAdapter eh = new SomeAdapter(getActivity(), kapow);
          listview.setAdapter(eh);
          eh.notifyDataSetChanged();
  </code></pre>
  
  <p>Here is my SomeAdapter class code:</p>
  
  <pre><code>public class SomeAdapter extends ArrayAdapter&lt;String&gt; {
  
  private Context mContext;
  private ArrayList&lt;String&gt; mItem;
  
  public SomeAdapter(Context context, ArrayList&lt;String&gt; itemsArrayList) {
      super(context, R.layout.listviewtextview, itemsArrayList);
      this.mContext = context;
      this.mItem = itemsArrayList;
  }
  
  @Override
  public View getView(int position, View convertView, ViewGroup parent) {
      LayoutInflater inflater = (LayoutInflater) mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
      View v = inflater.inflate(R.layout.listviewtextview, parent, false);
      TextView mFoodName = (TextView) v.findViewById(R.id.food_name);v.findViewById(R.id.food_description);
      mFoodName.setText(mItem.get(position) + "");
      return v;
  }
  }
  </code></pre>
  
  <p>And last but not least, here is my listviewtextview.xml file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="fill_parent"
  android:background="@drawable/row_activated"
  android:layout_height="88dp"&gt;
  
  &lt;LinearLayout
      android:layout_height="88dp"
      android:layout_width="match_parent"
      android:layout_marginLeft="16dp"
      android:gravity="center_vertical"
      android:orientation="vertical"&gt;
  
      &lt;TextView
          android:id="@+id/food_name"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:maxLines="1"
          android:textColor="@color/text_color"
          android:textSize="16sp"/&gt;
  
      &lt;TextView
          android:id="@+id/food_brand"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_below="@+id/food_name"
          android:singleLine="true"
          android:textColor="@color/text_color"
          android:textSize="14sp"/&gt;
  
      &lt;TextView
          android:id="@+id/food_description"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:paddingRight="16dp"
          android:layout_below="@+id/label"
          android:singleLine="true"
          android:textColor="@color/text_color"
          android:textSize="12sp"/&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p></p>