admin
2021-03-27 214f9edd2fe20c20e32630e9b5380cc6271c1eb7
BuWanVideo/src/com/weikou/beibeivideo/util/ui/ToastUtil.java
@@ -7,12 +7,13 @@
public class ToastUtil {
    public static void showMiddleToast(Context context, View view, int duration) {
    public static Toast showMiddleToast(Context context, View view, int duration) {
        Toast toast = new Toast(context);
        toast.setView(view);
        toast.setDuration(duration);
        toast.setGravity(Gravity.CENTER,0,0);
        toast.setGravity(Gravity.CENTER, 0, 0);
        toast.show();
        return toast;
    }