title: How to setting listener for button inside the Crouton Toast and clear that Crouton Toast using that button?
body: <p>I have an app, which shows toast below the actionbar. I'm using Crouton library for displaying toast. Here I'm placing custom layout for toast, that layout contains one textview and one button (for close option). So Toast appears with button. If I click that it should close the toast but nothing happens.. Below Code for this example. Any Help Appreciated</p>
  
  <h2>MainActivity.java</h2>
  
  <pre><code>public class MainActivity extends SherlockActivity implements OnClickListener {
  
  private View customToastView;
  private TextView customToastMessageView;
  private Button customToastCloseButton;
  private Button doneButton;
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
      doneButton = (Button) findViewById(R.id.done_button);
      customToastView = getLayoutInflater().inflate(R.layout.toast_custom_layout, null);
      customToastMessageView = (TextView) customToastView.findViewById(R.id.messages);
      customToastCloseButton = (Button) customToastView.findViewById(R.id.close_button);
      customToastCloseButton.setOnClickListener(this);
      doneButton.setOnClickListener(this);
  }
  
  @Override
  public void onClick(View v) {
  
      switch (v.getId()) {
          case R.id.done_button:
              Crouton.cancelAllCroutons();
              customToastMessageView.setText("Message");
              Crouton.show(this, customToastView);
              break;
          case R.id.close_button:
              Crouton.cancelAllCroutons();
              break;
        }
    }
  }
  </code></pre>
  
  <h2>toast_custom_layout.xml</h2>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent" &gt;
  
      &lt;TextView
          android:id="@+id/messages"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignParentLeft="true"
          android:layout_alignParentTop="true"
          android:layout_marginLeft="26dp"
          android:text="Large Text"
          android:textAppearance="?android:attr/textAppearanceLarge" /&gt;
  
      &lt;Button
          android:id="@+id/close_button"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignParentRight="true"
          android:layout_alignParentTop="true"
          android:layout_marginRight="23dp"
          android:text="Button" /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <h2>activity_main.xml</h2>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:tools="http://schemas.android.com/tools"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent" &gt;
  
  &lt;Button
      android:id="@+id/done_button"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignParentTop="true"
      android:layout_centerHorizontal="true"
      android:layout_marginTop="146dp"
      android:text="Button" /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>