コード例 #1
0
 public static ALifeToast makeText(
     Activity activity,
     ViewGroup contentView,
     CharSequence text,
     ToastType toastType,
     long duration,
     OnToastClickListener toastClickListener) {
   if (sALifeToast == null) {
     if (activity == null) {
       return null;
     }
     sALifeToast = new ALifeToast(activity);
   }
   sALifeToast.setFuuboToast(activity, contentView, text, toastType, duration, toastClickListener);
   return sALifeToast;
 }
コード例 #2
0
 public static void cancelAll() {
   if (null != sALifeToast) {
     sALifeToast.clearTaskQueue();
   }
 }