Android Programming Press on the image to return to the main documentation page.

Customtoast

Written by XverhelstX

List of types:

CustomToast

CustomToast


Permissions:

android.permission.WRITE_SECURE_SETTINGS

Events:

None

Members:


  Initialize

  Show (message As CharSequence, duration As Int, gravity As Int, xOffset As Int, yOffset As Int)

  ShowBitmap (message As CharSequence, duration As Int, gravity As Int, xOffset As Int, yOffset As Int, bm As android.graphics.Bitmap)

Members description:

Initialize
Initializes the CustomToast Library.
Show (message As CharSequence, duration As Int, gravity As Int, xOffset As Int, yOffset As Int)
Shows a custom toastmessage
message: the message to be displayed. (a string)
duration: in milliseconds
a Gravity constant, an x-position offset, and a y-position offset.
For example, if you decide that the toast should appear in the top corner.
(Gravity.TOP, 0, 0)
ShowBitmap (message As CharSequence, duration As Int, gravity As Int, xOffset As Int, yOffset As Int, bm As android.graphics.Bitmap)
Shows a custom toastmessage with a bitmap.
message: the message to be displayed. (a string)
duration: in milliseconds
a Gravity constant, an x-position offset, and a y-position offset.
For example, if you decide that the toast should appear in the top corner.
(Gravity.TOP, 0, 0)
Top