title: How do I use a compound drawable instead of a LinearLayout that contains an ImageView and a TextView
body: <p>Ran the new Lint tool against my code.  It came up with a lot of good suggestions, but this one I cannot understand.</p>
  <blockquote>
  <p>This tag and its children can be replaced by one  and a compound drawable</p>
  <p>Issue: Checks whether the current node can be replaced by a TextView using compound drawables.</p>
  <p>A LinearLayout which contains an ImageView and a TextView can be more efficiently handled as a compound drawable</p>
  </blockquote>
  <p>And here is my layout</p>
  <pre><code>&lt;LinearLayout
  android:layout_width=&quot;wrap_content&quot;
  android:layout_height=&quot;wrap_content&quot;
  android:orientation=&quot;horizontal&quot;
  android:layout_centerInParent=&quot;true&quot;&gt;
  
  &lt;ImageView 
      android:id=&quot;@+id/upImage&quot;
      android:layout_width=&quot;20dp&quot;
      android:layout_height=&quot;20dp&quot;
      android:layout_gravity=&quot;center_vertical&quot;
      android:scaleType=&quot;centerInside&quot;
      android:src=&quot;@drawable/up_count_big&quot;&gt;
  &lt;/ImageView&gt;
  
  &lt;TextView
      android:id=&quot;@+id/LikeCount&quot;
      android:layout_width=&quot;wrap_content&quot;
      android:layout_height=&quot;wrap_content&quot;
      android:layout_marginLeft=&quot;2dp&quot;
      android:layout_marginBottom=&quot;1dp&quot;
      android:textColor=&quot;@color/gray&quot;
      android:textSize=&quot;16sp&quot;
      android:layout_gravity=&quot;center_vertical&quot;&gt;
  &lt;/TextView&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  <p>Can someone provide a concrete example of how to make a compound drawable in this case?</p>