title: How to add a third text view to list view elements using custom list adapter
body: <p>I followed <a href="http://www.ezzylearning.com/tutorial/customizing-android-listview-items-with-custom-arrayadapter" rel="nofollow">this</a> tutorial on how to add a header, a text view <code>id/txtTitle</code>, and an image view <code>id/imgIcon</code> to individual list elements within a list view. </p>
  
  <p>I modified the tutorial code to incorporate a third text view <code>id/txtTitle2</code>, however I still only see the image view <code>id/imgIcon</code> and the original text view <code>id/txtTitle</code>. Additionally, the list view seems like it's bigger, or zoomed in. This is the result of my code modifications.</p>
  
  <p>How can I fix the code so I see a the third text view without size distortion?</p>
  
  <p><code>activity_main.xml</code></p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:paddingLeft="0dp"
      android:paddingRight="0dp"
      android:paddingTop="0dp"
      android:paddingBottom="0dp"
      tools:context=".MainActivity"&gt;
  
  
      &lt;ListView
          android:id="@+id/listView1"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"
          android:layout_alignParentBottom="true"
          android:layout_alignParentLeft="true"
          android:layout_alignParentStart="true" /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p><code>listview_item_row.xml</code></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:orientation="horizontal"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:padding="10dp"&gt;
  
      &lt;ImageView android:id="@+id/imgIcon"
          android:layout_width="wrap_content"
          android:layout_height="fill_parent"
          android:gravity="center_vertical"
          android:layout_alignParentTop="true"
          android:layout_alignParentBottom="true"
          android:layout_marginRight="15dp"
          android:layout_marginTop="5dp"
          android:layout_marginBottom="5dp" /&gt;
  
      &lt;TextView android:id="@+id/txtTitle"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"
          android:gravity="center_vertical"
          android:layout_alignParentTop="true"
          android:layout_alignParentBottom="true"
          android:textStyle="bold"
          android:textSize="22dp"
          android:textColor="#000000"
          android:layout_marginTop="5dp"
          android:layout_marginBottom="5dp" /&gt;
  
      &lt;TextView android:id="@+id/txtTitle2"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"
          android:gravity="center_vertical"
          android:layout_alignParentTop="true"
          android:layout_alignParentBottom="true"
          android:textStyle="bold"
          android:textSize="22dp"
          android:textColor="#000000"
          android:layout_marginTop="5dp"
          android:layout_marginBottom="5dp" /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>custom list adapter <code>WeatherAdapter extends ArrayAdapter&lt;Weather&gt;</code></p>
  
  <pre><code>public class WeatherAdapter extends ArrayAdapter&lt;Weather&gt;{
  
      Context context;
      int layoutResourceId;
      Weather data[] = null;
  
      public WeatherAdapter(Context context, int layoutResourceId, Weather[] data) {
          super(context, layoutResourceId, data);
          this.layoutResourceId = layoutResourceId;
          this.context = context;
          this.data = data;
      }
  
      @Override
      public View getView(int position, View convertView, ViewGroup parent) {
          View row = convertView;
          WeatherHolder holder = null;
  
          if(row == null)
          {
              LayoutInflater inflater = ((Activity)context).getLayoutInflater();
              row = inflater.inflate(layoutResourceId, parent, false);
  
              holder = new WeatherHolder();
              holder.imgIcon = (ImageView)row.findViewById(R.id.imgIcon);
              holder.txtTitle = (TextView)row.findViewById(R.id.txtTitle);
              holder.txtTitle2 = (TextView)row.findViewById(R.id.txtTitle2);
  
              row.setTag(holder);
          }
          else
          {
              holder = (WeatherHolder)row.getTag();
          }
  
          Weather weather = data[position];
          holder.txtTitle2.setText(weather.title2);
          holder.txtTitle.setText(weather.title);
          holder.imgIcon.setImageResource(weather.icon);
  
          return row;
      }
  
      static class WeatherHolder
      {
          ImageView imgIcon;
          TextView txtTitle;
          TextView txtTitle2;
      }
  }
  </code></pre>
  
  <p>class <code>Weather</code></p>
  
  <pre><code>public class Weather {
      public int icon;
      public String title;
      public String title2;
  
      public Weather(){
          super();
      }
  
      public Weather(int icon, String title, String title2) {
          super();
          this.icon = icon;
          this.title = title;
          this.title2 = title2;
      }
  }
  </code></pre>