title: Draw diagonal line from corner to corner inside RelativeLayout
body: <p>I'm new in Android development and I'm trying to draw a line inside my yellow RelativeLayout from bottom left corner to top right corner. 
  I've added a <code>layer-list</code> - <code>diagonal_line</code></p>
  
  <pre><code>&lt;layer-list xmlns:android="http://schemas.android.com/apk/res/android"&gt;
  &lt;item
      android:top="300dp"
      android:bottom="-300dp"
      android:left="0dp"
      android:right="-300dp"&gt;
      &lt;rotate
          android:fromDegrees="-10"
          android:pivotX="0%"
          android:pivotY="100%" &gt;
          &lt;shape
              android:shape="line"
              android:top="1dip" &gt;
              &lt;stroke
                  android:width="1dip"
                  android:color="#000" /&gt;
          &lt;/shape&gt;
      &lt;/rotate&gt;
  &lt;/item&gt;
  </code></pre>
  
  <p></p>
  
  <p>then to <code>styles</code></p>
  
  <pre><code>&lt;style name="diagonalStyle"&gt;
      &lt;item name="android:background"&gt;@drawable/diagonal_line&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p>then added it to my <code>RelativeLayout</code></p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="match_parent" android:layout_height="match_parent"
  style="@style/diagonalStyle"
  android:background="#FFDC7F"&gt;
  </code></pre>
  
  <p>My problem is that if I add the color the line is not showing and without color the line appears but is not in the correct position. Perhaps this question is a duplicate but please be gentle, I don't know what am I doing wrong.</p>