How to place button inside the Crouton Toast and setting listener for this?

view story

http://stackoverflow.com – 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 MainActivity.java public class MainActivity extends SherlockActivity implements OnClickListener { private View customToastView; private TextView customToastMessageView; private Button customToastCloseButton; private Button doneButton; @Ove (HowTos)