title: Android, List items cannot be displayed
body: <p>In my fragment I have a list. I want to display data on my list.
  This is adapter class:</p>
  
  <pre><code>@Override
      public int getCount() {
          10;
      }
  
      @Override
      public Object getItem(int position) {
          return null;
      }
  
      @Override
      public long getItemId(int position) {
          return position;
      }
  
      @Override
      public View getView(int position, View convertView, ViewGroup parent) {
          ViewHolder holder;
          Log.e(TAG, "---");
          if (convertView == null) {
              convertView = myInflater.inflate(R.layout.list_topicslist, null);
              holder      = new ViewHolder();
  
              holder.tvTitle          = (TextView)        convertView.findViewById(R.id.tvTitle);
              holder.tvExcerpt        = (TextView)        convertView.findViewById(R.id.tvExcerpt);
              holder.tvDate           = (TextView)        convertView.findViewById(R.id.tvDate);
              holder.tvAuthor         = (TextView)        convertView.findViewById(R.id.tvAuthor);
              holder.tvComment_Count  = (TextView)        convertView.findViewById(R.id.tvComment_Count);
  
              convertView.setTag(holder);
          } else {
              holder = (ViewHolder) convertView.getTag();
          }
  
          holder.tvTitle.setText("Title");
          holder.tvExcerpt.setText("Content");
          holder.tvAuthor.setText("Hesam");
          holder.tvComment_Count.setText("Votes:");
          holder.tvDate.setText("1/1/2013");
  
          return convertView;
      }
  </code></pre>
  
  <p>This is list_topicslist.xml:</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="match_parent"
          android:layout_height="match_parent"
          android:id="@+id/rlContainer"
          android:background="@color/White" &gt;
  
  
      &lt;RelativeLayout
              android:id="@+id/rlHeader"
              android:orientation="vertical"
              android:layout_width="match_parent"
              android:layout_height="25dp" android:layout_alignParentLeft="true"
              android:layout_alignParentTop="true" android:background="@color/bg_list_title"&gt;
          &lt;TextView
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:text="@string/title_author"
                  android:id="@+id/tvAuthor" android:layout_alignParentRight="true" android:layout_centerVertical="true"
                  android:layout_margin="@dimen/sideMargin" android:lines="1" android:maxLines="1"/&gt;
          &lt;TextView
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:text="@string/title_date"
                  android:id="@+id/tvDate" android:layout_alignParentLeft="true"
                  android:layout_margin="@dimen/sideMargin" android:maxLines="1"
                  android:lines="1" android:layout_centerVertical="true"/&gt;
      &lt;/RelativeLayout&gt;
  
      &lt;RelativeLayout
              android:id="@+id/rlBody"
              android:orientation="vertical"
              android:layout_width="match_parent"
              android:layout_height="100dp"
              android:layout_below="@id/rlHeader" android:clickable="false"&gt;
  
          &lt;ImageView
                  android:layout_width="100dp"
                  android:layout_height="100dp"
                  android:id="@+id/ivPostImage" android:layout_alignParentRight="true"
                  android:layout_alignParentTop="true" android:layout_margin="@dimen/sideMargin"
                  android:src="@drawable/ic_loading_green"/&gt;
          &lt;TextView
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:text="@string/title_title"
                  android:id="@+id/tvTitle" android:layout_toLeftOf="@+id/ivPostImage"
                  android:layout_alignTop="@+id/ivPostImage" android:layout_margin="@dimen/sideMargin" android:lines="1"
                  android:maxLines="3"/&gt;
          &lt;TextView
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:text="@string/title_excerpt"
                  android:id="@+id/tvExcerpt" android:layout_toLeftOf="@+id/ivPostImage"
                  android:layout_below="@+id/tvTitle" android:layout_margin="@dimen/sideMargin" android:lines="1"
                  android:maxLines="6"/&gt;
      &lt;/RelativeLayout&gt;
  
      &lt;RelativeLayout
              android:id="@+id/rlFooter"
              android:orientation="vertical"
              android:layout_width="match_parent"
              android:layout_height="25dp"
              android:layout_below="@id/rlBody"
              android:background="@color/bg_list_footer"&gt;
          &lt;TextView
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:text="@string/title_comment_count"
                  android:id="@+id/tvComment_Count" android:layout_alignParentRight="true"
                  android:layout_alignParentTop="true" android:layout_margin="@dimen/sideMargin"
                  android:layout_centerVertical="true" android:lines="1" android:maxLines="1"/&gt;
      &lt;/RelativeLayout&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>This is xml of fragment:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  
  &lt;RelativeLayout
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          xmlns:android="http://schemas.android.com/apk/res/android"
          xmlns:tools="http://schemas.android.com/tools" &gt;
  
      &lt;ListView
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:id="@+id/lvTopicsList"
              android:scrollbars="none"
              android:scrollingCache="false"
              tools:listitem="@layout/list_topicslist" /&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>When I run the application I cannot see my list but Log shows that getView() has been called.</p>
  
  <pre><code>02-28 21:09:10.195: E/*** TopicAdapter ***(16184): ---
  02-28 21:09:10.220: D/dalvikvm(16184): GC_CONCURRENT freed 2720K, 33% free 11321K/16775K, paused 2ms+1ms
  02-28 21:09:10.235: E/*** TopicAdapter ***(16184): ---
  02-28 21:09:10.235: E/*** TopicAdapter ***(16184): ---
  02-28 21:09:10.235: E/*** TopicAdapter ***(16184): ---
  02-28 21:09:10.240: E/*** TopicAdapter ***(16184): ---
  02-28 21:09:10.240: E/*** TopicAdapter ***(16184): ---
  02-28 21:09:10.250: E/*** TopicAdapter ***(16184): ---
  02-28 21:09:10.275: E/*** TopicAdapter ***(16184): ---
  02-28 21:09:10.295: D/dalvikvm(16184): GC_CONCURRENT freed 262K, 31% free 11693K/16775K, paused 2ms+2ms
  </code></pre>
  
  <p>What and where is my mistake(s)? 
  Any suggestions would be appreciated. Thanks </p>