Hi,
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.
Posts
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 useBitmapFactory.DecodeResource()
and it will use a background thread as well.I tried this code and nothing
`
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.