A toast is a view containing a quick little message for the user. The toast class helps you create and show those.
class android.widget.Toast
.class Landroid/widget/Toast;

̳
inherit java.lang.Object
.super Ljava/lang/Object;

Show the view or text notification for a long period of time.
public static final int LENGTH_LONG
sget v0, Landroid/widget/Toast;->LENGTH_LONG:I

Show the view or text notification for a short period of time.
public static final int LENGTH_SHORT
sget v0, Landroid/widget/Toast;->LENGTH_SHORT:I

췽Construct an empty Toast object.
constructor Toast(Context context)
invoke-direct {v0, v1}, Landroid/widget/Toast;-><init>(Landroid/content/Context;)V

Close the view if it's showing, or don't show it if it isn't showing yet.
void cancel()
invoke-virtual {v0}, Landroid/widget/Toast;->cancel()V

Return the duration.
int getDuration()
invoke-virtual {v0}, Landroid/widget/Toast;->getDuration()I

Get the location at which the notification should appear on the screen.
int getGravity()
invoke-virtual {v0}, Landroid/widget/Toast;->getGravity()I

Return the horizontal margin.
float getHorizontalMargin()
invoke-virtual {v0}, Landroid/widget/Toast;->getHorizontalMargin()F

Return the vertical margin.
float getVerticalMargin()
invoke-virtual {v0}, Landroid/widget/Toast;->getVerticalMargin()F

Return the view.
View getView()
invoke-virtual {v0}, Landroid/widget/Toast;->getView()Landroid/view/View;

Return the X offset in pixels to apply to the gravity's location.
int getXOffset()
invoke-virtual {v0}, Landroid/widget/Toast;->getXOffset()I

Return the Y offset in pixels to apply to the gravity's location.
int getYOffset()
invoke-virtual {v0}, Landroid/widget/Toast;->getYOffset()I

Make a standard toast that just contains a text view with the text from a resource.
Toast makeText(Context context, int resId, int duration)
invoke-static {v0, v1, v2}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;

Make a standard toast that just contains a text view.
Toast makeText(Context context, CharSequence text, int duration)
invoke-static {v0, v1, v2}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

Set how long to show the view for.
void setDuration(int duration)
invoke-virtual {v0, v1}, Landroid/widget/Toast;->setDuration(I)V

Set the location at which the notification should appear on the screen.
void setGravity(int gravity, int xOffset, int yOffset)
invoke-virtual {v0, v1, v2, v3}, Landroid/widget/Toast;->setGravity(III)V

Set the margins of the view.
void setMargin(float horizontalMargin, float verticalMargin)
invoke-virtual {v0, v1, v2}, Landroid/widget/Toast;->setMargin(FF)V

Update the text in a Toast that was previously created using one of the makeText() methods.
void setText(int resId)
invoke-virtual {v0, v1}, Landroid/widget/Toast;->setText(I)V

Update the text in a Toast that was previously created using one of the makeText() methods.
void setText(CharSequence s)
invoke-virtual {v0, v1}, Landroid/widget/Toast;->setText(Ljava/lang/CharSequence;)V

Set the view to show.
void setView(View view)
invoke-virtual {v0, v1}, Landroid/widget/Toast;->setView(Landroid/view/View;)V

Show the view for the specified duration.
void show()
invoke-virtual {v0}, Landroid/widget/Toast;->show()V
