package xyz.igorgee.utilities;

import android.support.design.widget.Snackbar;
import android.view.View;

public class UIUtilities {
    public static void makeSnackbar(View view, int stringID) {
        makeSnackbar(view, stringID, null);
    }

    public static void makeSnackbar(View view, String content) {
        makeSnackbar(view, content, null);
    }

    public static void makeSnackbar(View view, int stringID, String confirm) {
        Snackbar.make(view, stringID, Snackbar.LENGTH_SHORT)
                .setAction(confirm != null ? confirm : "Ok", new View.OnClickListener() {
                    @Override
                    public void onClick(View v) {

                    }
                }).show();
    }

    public static void makeSnackbar(View view, String content, String confirm) {
        Snackbar.make(view, content, Snackbar.LENGTH_SHORT)
                .setAction(confirm != null ? confirm : "Ok", new View.OnClickListener() {
                    @Override
                    public void onClick(View v) {

                    }
                }).show();
    }
}

@@ -25,16 +25,120 @@
 ities;%0A%0A
+import android.app.AlertDialog;%0Aimport android.content.Context;%0Aimport android.content.DialogInterface;%0A
 import a
@@ -176,16 +176,16 @@
 ackbar;%0A
-
 import a
@@ -230,16 +230,21 @@
 ities %7B%0A
+    %0A
     publ
@@ -1157,32 +1157,32 @@
               %7D%0A
-
                 
@@ -1197,11 +1197,2330 @@
 );%0A    %7D
+%0A%0A    public static void makeAlertDialog(Context context, String message, int iconID) %7B%0A        new AlertDialog.Builder(context)%0A                .setTitle(%22Image Information%22)%0A                .setMessage(message)%0A                .setPositiveButton(%22Okay%22, new DialogInterface.OnClickListener() %7B%0A                    @Override%0A                    public void onClick(DialogInterface dialog, int which) %7B%0A%0A                    %7D%0A                %7D)%0A                .setNegativeButton(%22Cancel%22, new DialogInterface.OnClickListener() %7B%0A                    @Override%0A                    public void onClick(DialogInterface dialog, int which) %7B%0A%0A                    %7D%0A                %7D)%0A                .setIcon(iconID)%0A                .show();%0A    %7D%0A%0A    public static void makeAlertDialog(Context context, String message) %7B%0A        new AlertDialog.Builder(context)%0A                .setTitle(%22Image Information%22)%0A                .setMessage(message)%0A                .setPositiveButton(%22Okay%22, new DialogInterface.OnClickListener() %7B%0A                    @Override%0A                    public void onClick(DialogInterface dialog, int which) %7B%0A%0A                    %7D%0A                %7D)%0A                .setNegativeButton(%22Cancel%22, new DialogInterface.OnClickListener() %7B%0A                    @Override%0A                    public void onClick(DialogInterface dialog, int which) %7B%0A%0A                    %7D%0A                %7D)%0A                .show();%0A    %7D%0A%0A    public static void makeAlertDialog(Context context, String message,%0A                                       String positiveButton, String negativeButton,%0A                                       int iconID) %7B%0A        new AlertDialog.Builder(context)%0A                .setTitle(%22Image Information%22)%0A                .setMessage(message)%0A                .setPositiveButton(positiveButton, new DialogInterface.OnClickListener() %7B%0A                    @Override%0A                    public void onClick(DialogInterface dialog, int which) %7B%0A%0A                    %7D%0A                %7D)%0A                .setNegativeButton(negativeButton, new DialogInterface.OnClickListener() %7B%0A                    @Override%0A                    public void onClick(DialogInterface dialog, int which) %7B%0A%0A                    %7D%0A                %7D)%0A                .setIcon(iconID)%0A                .show();%0A    %7D
 %0A%7D%0A

Add AlertDialog Utility