I need to hide the Linear Layout, as i don't want content of layout to be shown on the UI but need to set the values for different element via consecutive dialog(pop-up window).
put id in your XML layout
and in your activity
var mainLayout = FindViewById<LinearLayout>(Resource.Id.main_layout);
mainLayout.Visibility = ViewStates.Invisible;
you can change ViewStates.Invisible with ViewStates.Gone if you don't want it take any layout space.
have you try set the isVisible property as invisible or binding a bool?
Hello, I have some similar question, can I ask here? I need to show or hide LinearLayout according to a spinner selection, I use gone property, but I only see the scroll increase the height but does not show the other views into
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies