Android.Widget.Toast.MakeText Method
Make a standard toast that just contains a text view with the text from a resource.

Syntax

[Android.Runtime.Register("makeText", "(Landroid/content/Context;II)Landroid/widget/Toast;", "")]
public static Toast MakeText (Android.Content.Context context, int resId, [Android.Runtime.GeneratedEnum] ToastLength duration)

Parameters

context
The context to use. Usually your Android.App.Application or Android.App.Activity object.
resId
The resource id of the string resource to use. Can be formatted text.
duration
How long to display the message. Either Toast.LENGTH_SHORT or Toast.LENGTH_LONG

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
!:NoType:if the resource can't be found.
!:NoType:android/content/res/Resources$NotFoundException;Href=../../../reference/android/content/res/Resources.NotFoundException.html

Remarks

Make a standard toast that just contains a text view with the text from a resource.

[Android Documentation]

Requirements

Namespace: Android.Widget
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1