title: Material Design Two-Line List
body: <p>I'd like to achieve the Two-Line List item shown here, in the <a href="http://material-design.storage.googleapis.com/images/components-recommendedtwolinelists-2_large_mdpi.png" rel="nofollow noreferrer"> Material Design page </a>.</p>
  <p>First of all, my xml file, which represents the list item to be used in the adapter:</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;LinearLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      android:orientation=&quot;vertical&quot;
      android:layout_width=&quot;match_parent&quot;
      android:layout_height=&quot;72dp&quot; &gt;
  
      &lt;TextView
          android:text=&quot;Artist&quot;
          android:textSize=&quot;16sp&quot;
          android:typeface=&quot;sans&quot;
          android:paddingLeft=&quot;16dp&quot;
          android:paddingStart=&quot;16dp&quot;
          android:id=&quot;@+id/textView_artist_name&quot;
          android:layout_width=&quot;match_parent&quot;
          android:layout_height=&quot;wrap_content&quot; /&gt;
  
      &lt;TextView
          android:text=&quot;10 Albumnes&quot;
          android:textSize=&quot;14sp&quot;
          android:typeface=&quot;sans&quot;
          android:paddingLeft=&quot;16dp&quot;
          android:paddingStart=&quot;16dp&quot;
          android:id=&quot;@+id/textView_album_count&quot;
          android:layout_width=&quot;match_parent&quot;
          android:layout_height=&quot;wrap_content&quot; /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  <p>Now, my problem. I want both TextView to be centered, just like the link above. But I see them aligned at the top of the <strong>LinearLayout</strong>. This is: The first TextView is at the top of the LinearLayout, and the second one below it, and then there is all free space. What I want to do is to see both TextView centered the list item.</p>
  <h2>First Try</h2>
  <p>I used <strong>android:layout_gravity=&quot;center_vertical&quot;</strong>, but it does not work with the two TextViews. If I delete one of the TextView then the other is where I want, but not when I add the second one.</p>
  <h2>Second Try</h2>
  <p>I've tried with the XML atributes <strong>android:WeightSum=&quot;2&quot;</strong> in the Layout and <strong>android:layout_weight=&quot;1&quot;</strong> in the TextViews, but neither worked.</p>
  <p>I'd like to know how could I manage to get the list item I linked here.
  Thanks in advance!</p>