@@ -0,0 +1,1284 @@
+package me.tuoxie.daai.ActionSheet;%0A%0Aimport android.app.AlertDialog;%0Aimport android.content.Context;%0Aimport android.content.DialogInterface;%0A%0Aimport java.util.List;%0A%0A/**%0A * Created by jason on 14-3-31.%0A */%0Apublic class ActionSheet %7B%0A%0A    public static class ActionSheetItem %7B%0A%0A        private String title;%0A        private ActionSheetItemOnClickListener itemOnClickListener;%0A%0A        public ActionSheetItem(String title, ActionSheetItemOnClickListener itemOnClickListener) %7B%0A            this.title = title;%0A            this.itemOnClickListener = itemOnClickListener;%0A        %7D%0A    %7D%0A%0A    public static interface ActionSheetItemOnClickListener %7B%0A        public void onClick();%0A    %7D%0A%0A    public static void showWithItems(Context ctx, final List%3CActionSheetItem%3E items) %7B%0A        AlertDialog.Builder menuDialog = new AlertDialog.Builder(ctx);%0A        String%5B%5D titles = new String%5Bitems.size()%5D;%0A        for (int i=0; i%3Citems.size(); i++) %7B%0A            titles%5Bi%5D = items.get(i).title;%0A        %7D%0A        menuDialog.setItems(titles, new DialogInterface.OnClickListener() %7B%0A            @Override%0A            public void onClick(DialogInterface dialog, int which) %7B%0A                items.get(which).itemOnClickListener.onClick();%0A            %7D%0A        %7D);%0A        menuDialog.show();%0A    %7D%0A%7D%0A

add ActionSheet.java