Hello All,
Updated: [June 30th, 2012]. Added more functions to set options for a new ToastShow and added sound. All are
attached below. NOTE: The new one requires the Audio library and only two parameters to be passed! See Post #: 11
for more information.
Updated: [June 24th, 2012] and added support for 9 Patch Images. The original is unchanged and both are attached below.
Here is a custom toast message class. It allows a number of features over the standard toast message. Below is a list of what can be set in this custom toast message class:
The message. It will wrap the message if it is longer than one line.
The text size
The text color
The message background color if no image is used
The toast message background image
The vertical position
The horizontal position
The number of seconds to display
Can be closed immediately in code
Select auto close or close by Tapping the message
Uses the new Reflection library 2.20.
Version 1.0 is attached to this post with Demo Code.
Margret
Erel the new B4A classes are awesome!!
Updated: [June 30th, 2012]. Added more functions to set options for a new ToastShow and added sound. All are
attached below. NOTE: The new one requires the Audio library and only two parameters to be passed! See Post #: 11
for more information.
Updated: [June 24th, 2012] and added support for 9 Patch Images. The original is unchanged and both are attached below.
Here is a custom toast message class. It allows a number of features over the standard toast message. Below is a list of what can be set in this custom toast message class:
The message. It will wrap the message if it is longer than one line.
The text size
The text color
The message background color if no image is used
The toast message background image
The vertical position
The horizontal position
The number of seconds to display
Can be closed immediately in code
Select auto close or close by Tapping the message
Uses the new Reflection library 2.20.
Version 1.0 is attached to this post with Demo Code.
Margret
Erel the new B4A classes are awesome!!
Attachments
Last edited: