Hi,
Can I please have some help to create a simple "Drawable icon" variable and
specify a graphic for the icon?
I am not sure what namespace to use or how to select the actual icon. I
cannot find a resource to help me either.
Android.Graphics.Drawable
something like
ImageView foo = new ImageView(context);
using (Drawable draw = Drawable.CreateFromPath(filename)) {
foo.SetImageDrawable (draw);
}
will work
This creates a new image view, loads the file and puts the drawable into
the imageview.
Paul
--
"Space," it says, "is big. Really big. You just won't believe how
vastly, hugely, mindbogglingly big it is. I mean, you may think it's a
long way down the road to the chemist's, but that's just peanuts to
space, listen..."
Hitch Hikers Guide to the Galaxy, a truly remarkable book!
_______________________________________________
Monodroid mailing list
[email protected]
UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid