title: Custom Frame renderer for unique corner radius values in android [Xamarin.Forms]
body: <p>I want to create a custom renderer for my frame control in fact of having a control which each corner radius values are unique, I have tried to create a custom renderer for frame control in many ways but I haven't found a "solid" solution for it, my custom renderer is not working, I also have tried to use Xamarin.Forms.PancackeView plugin but in my Xamarin.Forms version (4.3.0.991) it seems to have a bug or something related:</p>
  
  <p><strong>EXTRA</strong>:
  I want to implement shadow in the control frame, but as you should know, frame control by default has shadow, but the shadow in my frame is not working, is there a bug or how can I implement shadow to the custom frame renderer?</p>
  
  <p>Android code for custom Frame renderer:</p>
  
  <pre><code>[assembly: ExportRenderer(typeof(TagFrame), typeof(TagFrameCustomRendererAndroid))]
  namespace Sortex.Droid.CRImplementations
  {
      public class TagFrameCustomRendererAndroid : FrameRenderer
      {
          public TagFrameCustomRendererAndroid(Context context) : base(context)
          {
          }
  
          protected override void OnElementChanged(ElementChangedEventArgs&lt;Frame&gt; e)
          {
              base.OnElementChanged(e);
  
              if (e.NewElement != null)
              {
                  GradientDrawable gradientDrawable = new GradientDrawable();
  
                  float[] cornerRadius = { 100000, 100000, 0, 0, 0, 0, 100000, 100000 };
                  gradientDrawable.SetCornerRadii(cornerRadius);
  
                  SetBackgroundDrawable(gradientDrawable);
              }
          }
      }
  }
  </code></pre>
  
  <p>TagFrame class in the shared project:</p>
  
  <pre><code>public class TagFrame : Frame
  {
  }
  </code></pre>