I’m using this code to get a drawable and use in a SetCompoundDrawablesWithIntrinsicBounds call:
Drawable d = Resources.System.GetDrawable(Resource.Drawable.navigable_icon);
textView.SetCompoundDrawablesWithIntrinsicBounds(null,null,d,null);
The problem is that when calling the GetDrawable method I allways get an exception stating:
Android.Content.Res.Resources+NotFoundException: Resource ID
0x7f020009
The drawable exist as any other I use in xml in the drawable directory. Could anybody guess what’s hapenning?
Where are you calling this from?
As far as I can see the Resources class does not have a System property, and intellisense tells me that this is the way to get a Drawable: