Показаны сообщения с ярлыком toast. Показать все сообщения
Показаны сообщения с ярлыком toast. Показать все сообщения

User notification: Toast

Hi!
I'm begining a series of articles about how to alert the user. Course is designed for beginners.There are three ways to alert the user: Toast, Notification and through different types of Dialog. Today I will discuss of the first type of warning - Toast.
Introduction
Toast is a pop-up window that allows you to quickly notify the user about the event has occurred, such as maintaining the program settings to SD-card. Toast feature is that during the message, the user can interact with them is behind Activity, or with a home screen (home screen). Also worth noting that the user can not control the closing of Toast with hardware Back button or other possible means, the message appears and then smoothly itself as smoothly disappears. The time delay between the appearance and disappearance can be set programmatically. In most cases, Toast is a short message, but there is an opportunity to ask any appearance of Toast, for example, add an image next to the text. In addition, you can control the location of Toast on the screen.Toast can be created from an Activity, or from the Service. In the case of a service Toast appears on top of Activity, which has the focus, or top of the home screen.