package com.liyu.fakeweather.utils; import android.widget.Toast; import com.liyu.fakeweather.App; /** * Created by liyu on 2016/9/13. */ public class ToastUtil { public static void showShort(int resId) { Toast.makeText(App.getContext(), resId, Toast.LENGTH_SHORT).show(); } public static void showShort(String message) { Toast.makeText(App.getContext(), message, Toast.LENGTH_SHORT).show(); } public static void showLong(int resId) { Toast.makeText(App.getContext(), resId, Toast.LENGTH_LONG).show(); } public static void showLong(String message) { Toast.makeText(App.getContext(), message, Toast.LENGTH_LONG).show(); } }