title: adding custom border drawable to android RelativeLayout not showing - Xamarin Forms
body: <p>I'm trying to add a <strong>background rectangle shape</strong> to a custom RelativeLayout in android and I'm following the recommendations of most questions on here by implementing a custom drawable in <code>customborder.xml</code> and setting it as the background of the <code>custom.axml</code> view. I have also tried setting the relativeLayout source as well.</p>
  
  <p>You can see I've also tried it in an imageView which isn't showing up either.</p>
  
  <p>I've messed around with size and color but nothing appears to be rendered.</p>
  
  <p>Am I missing something that needs to be done in code? Or the xml?</p>
  
  <p><strong>customborder.xml:</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;shape xmlns:android="http://schemas.android.com/apk/res/android" 
      shape="rectangle"&gt;
      &lt;corners radius="20dp"/&gt;
      &lt;padding left="50dp" right="50dp" top="50dp" bottom="50dp"/&gt;
      &lt;stroke width="10dp" color="#B2F7FE"/&gt;
      &lt;solid color="white"/&gt;
   &lt;/shape&gt;
  </code></pre>
  
  <p><strong>custom.axml:</strong></p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="fill_parent"
  android:layout_height="wrap_content"
  android:padding="8dp"
  android:background="@drawable/customborder"&gt;
  &lt;ImageView
      android:id="@+id/imageViewBackground"
      android:layout_width="fill_parent"
      android:layout_height="49.0dp"
      android:layout_gravity="center"
      android:background="#ffededed"
      android:adjustViewBounds="false"
      android:alpha="1"
      android:backgroundTint="#00000000"
      android:foreground="@drawable/customborder" /&gt;
  &lt;refractored.controls.CircleImageView
      android:id="@+id/Image"
      android:layout_width="50dp"
      android:layout_height="50dp"
      android:layout_gravity="center"
      android:src="@drawable/icon" /&gt;
  &lt;LinearLayout
      android:id="@+id/Text"
      android:orientation="vertical"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:gravity="left"
      android:paddingLeft="10dip"
      android:layout_marginLeft="10.5dp"
      android:background="@drawable/customborder"&gt;
      &lt;TextView
          android:id="@+id/Text2"
          android:layout_width="wrap_content"
          android:layout_height="match_parent"
          android:textSize="24dip"
          android:textColor="#FFFFFFFF"
          android:paddingLeft="5dip"
          android:text="Test"
          android:layout_marginLeft="46.0dp"
          android:layout_marginTop="12.0dp"
          android:layout_gravity="left" /&gt;
      &lt;TextView
          android:id="@+id/Text1"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:textColor="#FF7F3300"
          android:textSize="20dip"
          android:textStyle="italic" /&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p></p>