title: How do I access to ListView from the adapter
body: <p>I have a custom <code>ListView</code> with my own adapter. I'm handling the click on a <code>Button</code> in my  <code>ListView</code>'s item, and I want the <code>ListView</code> to become invisible on this click.</p>
  
  <p>I have no idea how to get access to the <code>ListView</code> from the adapter.</p>
  
  <pre><code>public class ScheduleArrayAdapter extends ArrayAdapter&lt;ScheduleListItem&gt; {
  
      /*...*/
      @Override
      public View getView(int position, View convertView, ViewGroup parent) {
          View v = convertView;
          if (v == null) {
              LayoutInflater vi = (LayoutInflater)c.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
              v = vi.inflate(id, null);
          }
          final ScheduleListItem o = items.get(position);
          if (o != null) {
  
          /*...*/         
  
              Button details=(Button)v.findViewById(R.id.btn_details);
              details.setOnClickListener(new View.OnClickListener() {
                  @Override
                  public void onClick(View v) {
                      //HOW TO MAKE (R.id.lv_schedule) TO BECOME INVISIBLE HERE?
                  }
              });
          }
          return v;
      }
  }
  </code></pre>