title: How can i add 2 lines of text to a listView?
body: <p>i'm having problem trying to achieve two simple things using the listView. I want to lines of text and be able to change the color, new to android but i only found complex ways to achieve this i'm there is a simpler way this my code so far. Thanks.</p>
  
  <p>Activity:</p>
  
  <pre><code>  final ListView list = new ListView(this);
    list.setAdapter(new MyAdapter(this, ficheros));
  </code></pre>
  
  <p>@Override
          public View getView(int position, View convertView, ViewGroup parent) {</p>
  
  <pre><code>        RelativeLayout listLayout = new RelativeLayout(OFActivityA.this);
  
  
          listLayout.setLayoutParams(new AbsListView.LayoutParams(
                  120, 200));
          listLayout.setPadding(0, 0, 0, 0);
          listLayout.setId(View.generateViewId());
  
  
          TextView listText = new TextView(OFActivityA.this);
          listText.setId(View.generateViewId());
  
          listLayout.addView(listText);
  
          listText.setText(super.getItem(position));
  
          listLayout.setVisibility(View.VISIBLE);
  
  
          return listLayout;
      }
  </code></pre>
  
  <p>xml</p>
  
  <pre><code>&lt;ListView
          android:id="@+id/listview"
          android:layout_width="match_parent"
          android:layout_height="399dp"
          android:layout_alignParentStart="true"
          android:layout_alignParentTop="true"
          android:layout_marginTop="193dp"
          android:background="#fefbf8"
          android:text="#fefbf8"
          android:cacheColorHint="#FEFBF8" /&gt;
  </code></pre>