> 1.  The button is not clickable!  onClick is not called when I click on the
> button.

Toasts are meant only to display information, they are not meant for
user interaction. Use a dialog to do this.

> 2.  If I replace Toast.LENGTH_LONG with a number 10000, the toast does not
> stay for 10 seconds.

You cannot specify the duration of a toast except using the predefined duration.

> Is it by design that you can't add any listener to the UI controls on the
> toast?

Yes.

> How do you change the duration of how long the toast stays?

You can choose between SHORT and LONG.

-- 
Romain Guy
www.curious-creature.org

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to