title: trouble in Hide/show of listview on a click in xamarin android
body: <p>Trying to show and hide(toggle) a listview on click of image in xamarin android using visual studio.But it doesnt hide.What am i doing wrong here. onclick i am not able to hide and show the listview.below is my code for onclick</p>
  
  <pre><code> protected override void OnCreate(Bundle bundle)
          {
              base.OnCreate(bundle);
  
              SetContentView(Resource.Layout.HomeScreen);
              listView = FindViewById&lt;ListView&gt;(Resource.Id.List);
  
              tableItems.Add(new TableItem() { Heading = "Vegetables", SubHeading = "65 items", ImageResourceId = Resource.Drawable.Vegetables });
              tableItems.Add(new TableItem() { Heading = "Fruits", SubHeading = "17 items", ImageResourceId = Resource.Drawable.Fruits });
  
              listView.Adapter = new HomeScreenAdapter(this, tableItems);
  
              listView.ItemClick += OnListItemClick;
  
              ImageView ImageView = FindViewById&lt;ImageView&gt;(Resource.Id.imageView1);
              //  ListView listView = FindViewById&lt;ListView&gt;(Resource.Id.List);
  
              ImageView.FindViewById&lt;ImageView&gt;(Resource.Id.imageView1).Click += (object sender, System.EventArgs e) =&gt;
              {
                  listView.FindViewById&lt;ListView&gt;(Resource.Id.List).Visibility = Android.Views.ViewStates.Visible;
              };
  
  
          }
  
          protected void OnListItemClick(object sender, Android.Widget.AdapterView.ItemClickEventArgs e)
          {
              var listView = sender as ListView;
              var t = tableItems[e.Position];
              Android.Widget.Toast.MakeText(this, t.Heading, Android.Widget.ToastLength.Short).Show();
              Console.WriteLine("Clicked on " + t.Heading);
          }
  </code></pre>
  
  <p>I am new bie to android and xamarin.Any help is appreciated.</p>