I'm trying to load a simple image as a background for a GPS app using C# in Visual Studio.
The resources are located in
Resources/drawable/resource file
Now I've been trying to display these files like this, "Arrow" en "Map"
Kaart = BitmapFactory.DecodeResource(context.Resources, Resource.Drawable.Map, opt);
Pijl = BitmapFactory.DecodeResource(context.Resources, Resource.Drawable.Arrow, opt);
I've declared "Kaart" and "Pijl" als bitmaps at the start of the class but "Map" and "Arrow" remain unrecognised and are red underlined saying that Resource.Drawable does not contain a definition for "Arrow" and "Map".
Thanks!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…