Android Study Notes (26): Analysis of the Toast prompt information box

Source: Internet
Author: User

Android Study Notes (26): Analysis of the Toast prompt information box

Toast is used to display the prompt message box on the interface. The prompt message box disappears after a period of time.

The steps to display the prompt information with Toast are simple:

 

1. Call the Toast constructor or the makeText () static method to create a Toast object.

2. Use Toast to set the Message format.

3. Call Toast's show () method to display the message prompt box.

 

To display a complex message prompt box, you can use a dialog box or Toast to create an instance by using the Toast constructor, and then call setView () to set the View component displayed on Toast.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.