title: Xamarin Android SetBackgroundDrawable deprecated but not SetBackground()
body: <pre><code>var textView = parentView.FindViewById&lt;TextView&gt;(Resource.Id.txt_chat_message);
  GradientDrawable gd = new GradientDrawable();
  gd.SetCornerRadius(10);
  gd.SetColor(Color.Yellow);
  textView.SetBackgroundDrawable(gd);
  </code></pre>
  
  <p>As in the example above <code>SetBackgroundDrawable</code> allows me to control the color and radius programmatically. I have looked at <code>SetBackgroundResouce</code> but I cannot find a clear example as it just seems to take an ID to a resource that I could not change progamatically. </p>
  
  <p>Could someone help me providing an alternative that gives me the flexibility to do the exact same as <code>SetBackgroundDrawable</code> above please?</p>