Android Guides | Samples

Android.Widget.ToastLength Enumeration

Enumerates values returned by the Toast.Duration, ToastLength.Long, and ToastLength.Short members and taken as a parameter of the Toast.MakeText, Toast.MakeText, and Toast.MakeText members.

Syntax

public enum ToastLength

Remarks

Enumerates values returned by the Toast.Duration, ToastLength.Long, and ToastLength.Short members and taken as a parameter of the Toast.MakeText, Toast.MakeText, and Toast.MakeText members.

Members

Member NameDescription
LongShow the view or text notification for a long period of time. This time could be user-definable.
ShortShow the view or text notification for a short period of time. This time could be user-definable. This is the default.

Requirements

Namespace: Android.Widget
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0

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

See Also: Enum

Public Fields

LongToastLength. Show the view or text notification for a long period of time. This time could be user-definable.
ShortToastLength. Show the view or text notification for a short period of time. This time could be user-definable. This is the default.