Android.Widget.Toast Members

The members of Android.Widget.Toast are listed below.

See Also: Inherited members from Java.Lang.Object

Public Constructors

Construct an empty Toast object.

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Properties

DurationToastLength. Return the duration.
[read-only]
GravityAndroid.Views.GravityFlags. Get the location at which the notification should appear on the screen.
[read-only]
HorizontalMarginfloat. Return the horizontal margin.
[read-only]
VerticalMarginfloat. Return the vertical margin.
ViewAndroid.Views.View. Return the view.
[read-only]
XOffsetint. Return the X offset in pixels to apply to the gravity's location.
[read-only]
YOffsetint. Return the Y offset in pixels to apply to the gravity's location.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

Cancel()
Close the view if it's showing, or don't show it if it isn't showing yet.
static
MakeText(Android.Content.Context, Java.Lang.ICharSequence, ToastLength) : Toast
Make a standard toast that just contains a text view.
static
MakeText(Android.Content.Context, int, ToastLength) : Toast
Make a standard toast that just contains a text view with the text from a resource.
static
MakeText(Android.Content.Context, string, ToastLength) : Toast
Documentation for this section has not yet been entered.
SetGravity(Android.Views.GravityFlags, int, int)
Set the location at which the notification should appear on the screen.
SetMargin(float, float)
Set the margins of the view.
SetText(Java.Lang.ICharSequence)
Update the text in a Toast that was previously created using one of the makeText() methods.
SetText(int)
Update the text in a Toast that was previously created using one of the makeText() methods.
SetText(string)
Documentation for this section has not yet been entered.
Show()
Show the view for the specified duration.