How do I programatically retrieve a Shape from my resources?

fljohwatfljohwat USMember
edited October 2012 in Xamarin.Android

Given the shape shown below, how would I create an instance of Shape in C# in MonoDroid loading that shape from the resource?

Posts

  • fljohwatfljohwat USMember

    Ah, I found out,

    var bgRect = (GradientDrawable) _context.Resources.GetDrawable(Resource.Drawable.rounded_bg);

Sign In or Register to comment.