title: How can I have two different background colors?
body: <p>I am developing an application in Xamarin Android but I have a question and it is to know if it is possible to put two different background colors, or rather that the background color is only half of the screen: <br/>
  This is my xml:</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?&gt;
  &lt;layer-list xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;&gt;
    &lt;item android:bottom=&quot;550dp&quot;&gt;
      &lt;shape
        android:shape=&quot;rectangle&quot;&gt;
        &lt;solid
           android:color=&quot;#8A0808&quot;/&gt;
        &lt;size
          android:height=&quot;60dp&quot;
          android:width=&quot;20dp&quot; /&gt;
        &lt;gradient
          android:centerX=&quot;1&quot;
          android:centerColor=&quot;#8A0808&quot;
          android:endColor=&quot;#eb5757&quot;
          android:startColor=&quot;#d10808&quot;/&gt;
      &lt;/shape&gt;
    &lt;/item&gt;
  &lt;/layer-list&gt;
  </code></pre>
  <p>But this code generates a problem for me and it is that when the screen has many elements, the color that I have is lowered with the screen, that is, it is not static, To use this background I am using a grid layout. <br/>
  This is my grid layout basic:</p>
  <pre><code>&lt;GridLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      android:layout_width=&quot;match_parent&quot;
      android:layout_height=&quot;match_parent&quot;
      android:background=&quot;@drawable/fondo_personalizado&quot;
      android:rowCount=&quot;24&quot;
      android:columnCount=&quot;1&quot;
      android:orientation=&quot;vertical&quot;&gt;
  &lt;/LinearLayout&gt;
  </code></pre>