I used icon.SetImageResource (Resource.Drawable.okoli); But return other image than it should (it´s image in front this image). I don´t know why.
Do you have idea?
Try SetImageDrawable instead. SetImageResource can work, but it loads and decodes the images on the UI thread, which you probably don't want. SetImageDrawable does the reading and decoding on a background thread. (You can also use BitmapFactory.DecodeResource() and it will use a background thread as well.
I tried this code and nothing
icon = new ImageView (_context);
Resources res = _context.Resources;
icon.SetImageDrawable (res.GetDrawable (Resource.Drawable.dolu));
//Bitmap b = BitmapFactory.DecodeResource (res, Resource.Drawable.dolu);
Do you ever add the imageview as child to the root view or return it or whereever you are using it?
Yes, I add to root layout.
I solved it, I must delete folder bin a obj.
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies