Toast.LENGTH_SHORT : Toast « UI « Android






Toast.LENGTH_SHORT

  

import android.content.Context;
import android.widget.Toast;

/**
 * @author Denis Migol
 * 
 */
 class ToastUtil {
  private ToastUtil() {
  }

  public static void showText(final Context context, final String text) {
    Toast.makeText(context, text, Toast.LENGTH_SHORT).show();
  }

  public static void showNotImplemented(final Context context) {
    showText(context, "Not yet implemented");
  }
}

   
    
  








Related examples in the same category

1.Raise a Toast
2.Toast Message Demo
3.Using Toast.LENGTH_SHORT
4.Toast and Notification, vibrate and sound
5.Show Toast
6.Make Toast Text
7.Responsible for sending Toasts under all circumstances.
8.AlertDialog vs Toast
9.Show long,short Toast
10.The Toast util class
11.show Toast in a Thread
12.Popup Debug Message