类 ToastUtil


  • public class ToastUtil
    extends Object
    • 构造器详细资料

      • ToastUtil

        public ToastUtil()
    • 方法详细资料

      • controlToastTime

        public static void controlToastTime​(Toast toast,
                                            int duration)
      • showTop

        public static void showTop​(Context context,
                                   String text)
      • showTop

        public static void showTop​(Context context,
                                   String text,
                                   int duration)
      • showTopError

        public static void showTopError​(Context context,
                                        String text)
      • showTopError

        public static void showTopError​(Context context,
                                        String text,
                                        int duration)
      • showCenter

        public static void showCenter​(Context context,
                                      String text)
      • showCenter

        public static void showCenter​(Context context,
                                      String text,
                                      int imageResId)
      • showCenter

        public static void showCenter​(Context context,
                                      String text,
                                      int imageResId,
                                      int duration)
      • showCenterWarning

        public static void showCenterWarning​(Context context,
                                             String text)
      • showCenterWarning

        public static void showCenterWarning​(Context context,
                                             String text,
                                             int duration)