@@ -0,0 +1,1569 @@
+package circlebinder.common.checklist;%0A%0Aimport android.content.Context;%0Aimport android.support.v7.internal.widget.ListPopupWindow;%0Aimport android.view.View;%0A%0Aimport net.ichigotake.common.widget.OnItemClickEventListener;%0Aimport net.ichigotake.common.widget.OnItemClickListener;%0A%0Apublic final class ChecklistPopupSelector %7B%0A%0A    private final Context context;%0A    private final View anchor;%0A    private final OnItemClickListener%3CChecklistColor%3E listener;%0A    private final ListPopupWindow popupWindow;%0A%0A    public ChecklistPopupSelector(Context context, View anchor) %7B%0A        this.context = context;%0A        this.anchor = anchor;%0A        this.popupWindow = new ListPopupWindow(context);%0A        this.listener = new OnItemClickListener%3CChecklistColor%3E();%0A    %7D%0A%0A    public void setOnItemClickListener(OnItemClickEventListener%3CChecklistColor%3E listener) %7B%0A        this.listener.addOnItemClickEventListener(listener);%0A    %7D%0A%0A    public void show() %7B%0A        ChecklistSelectorAdapter adapter = new ChecklistSelectorAdapter(%0A                context, new ChecklistSelectorBinder()%0A        );%0A        adapter.add(ChecklistColor.NONE);%0A        for (ChecklistColor item : ChecklistColor.checklists()) %7B%0A            adapter.add(item);%0A        %7D%0A        popupWindow.setAdapter(adapter);%0A        popupWindow.setAnchorView(anchor);%0A        popupWindow.setOnItemClickListener(listener);%0A        popupWindow.setModal(true);%0A        //TODO: %E6%B1%BA%E3%82%81%E6%89%93%E3%81%A1%E3%82%84%E3%82%81%E3%81%9F%E3%81%84%0A        popupWindow.setWidth(800);%0A        popupWindow.show();%0A    %7D%0A%0A    public void dismiss() %7B%0A        popupWindow.dismiss();%0A    %7D%0A%7D%0A

add ChecklistPopupSelector