Rahul Raj
Rahul Raj

Reputation: 367

Hide an Imageview in Monodroid

I am tryin to hide an imageview in monodroid using the following code.

Imagaview image = FindViewbyId(Resource.Id.UserImage); image.Visibility = ViewStates.Invisible;

But the image is tsill visible in the form . I tried polacing the code snipet in RunonMainUiThread also. Still the same result.

Please help me in rectifying the issue

Upvotes: 0

Views: 447

Answers (1)

Matthew
Matthew

Reputation: 5202

If you mean that there is now just an empty space where the imageview was, then try setting the Visibility to ViewStates.Gone.

If the imageview is still showing the picture, try creating a small sample app that hides the imageview. If it doesn't work, please file a bug.

Upvotes: 1

Related Questions