Android Toast Create showToastShort(Activity ctx, String text)

Here you can find the source of showToastShort(Activity ctx, String text)

Description

show Toast Short

Declaration

public static final void showToastShort(Activity ctx, String text) 

Method Source Code

//package com.java2s;
import android.app.Activity;

import android.widget.Toast;

public class Main {
    public static final void showToastShort(Activity ctx, String text) {
        Toast.makeText(ctx, text, Toast.LENGTH_SHORT).show();
    }//w w  w  .jav  a2s .  c o m
}

Related

  1. showToask(Context context, String tip)
  2. showToast(Context context, String msg)
  3. toast(Context context, String text)
  4. toast(Context c, String msg)
  5. showToastLong(Activity ctx, String text)
  6. showMessage(Context ctx, String msg)
  7. showMessage(final Activity context, final String message)
  8. showFailure(Activity activity, int id)