I really shouldn't be having problems with this but I would like to place an image in my app, and what should be a 5 minute task is proving really difficult.
I would like the equivalent of this in HTML <img src="url"alt="some_text">.
I have tried this:
Dim GraphIcon As Bitmap = LoadBitmap(File.DirAssets, "graphIcon.bmp")
Activity.AddView(GraphIcon, 5%x, 5%y, 40%x, 25%y)
however it doesn't compile due a type mismatch error. What is the simplest way to do this. I have tried creating a canvas but that didn't get me anywhere. I was hoping there would be a tutorial on this.
Thanks
Sam
I would like the equivalent of this in HTML <img src="url"alt="some_text">.
I have tried this:
Dim GraphIcon As Bitmap = LoadBitmap(File.DirAssets, "graphIcon.bmp")
Activity.AddView(GraphIcon, 5%x, 5%y, 40%x, 25%y)
however it doesn't compile due a type mismatch error. What is the simplest way to do this. I have tried creating a canvas but that didn't get me anywhere. I was hoping there would be a tutorial on this.
Thanks
Sam