title: Can I use multiple shapes in one Android drawable?
body: <p>What I'm trying to do is define a common background for use in a LinearLayout which frequents my application on many of its Activitys.  This particular layout is a header that shows on the top of each activity. </p>
  
  <p>What I'm trying to do is create a drawable that fills the linearlayout with a gradient and has a horizontal line below the gradient.  </p>
  
  <p>Does anyone know if this is possible or do I have to do this sort of thing only with nested layouts.</p>
  
  <p>My attemptat the drawable xml is </p>
  
  <pre><code> &lt;selector xmlns:android="http://schemas.android.com/apk/res/android"&gt;
  &lt;item&gt;
  &lt;shape xmlns:android="http://schemas.android.com/apk/res/android"
      android:shape="rectangle"&gt;
      &lt;gradient android:startColor="#AA000000" android:endColor="#AA333333"
          android:angle="270" /&gt;
  &lt;/shape&gt;
  &lt;/item&gt;
  &lt;item&gt;
  &lt;shape android:shape="line"&gt;
      &lt;stroke android:width="3dp" android:color="#FFFFFFFF"
              android:dashWidth="1dp" android:dashGap="2dp" /&gt;
      &lt;size android:height="5dp" /&gt;
  &lt;/shape&gt;
  &lt;/item&gt;
  &lt;/selector&gt;
  </code></pre>