@@ -0,0 +1,955 @@
+package cn.luo.yuan.maze.client.display.dialog;%0A%0Aimport android.widget.ListView;%0Aimport cn.luo.yuan.maze.R;%0Aimport cn.luo.yuan.maze.client.display.adapter.GoodsAdapter;%0Aimport cn.luo.yuan.maze.client.service.NeverEnd;%0Aimport cn.luo.yuan.maze.client.utils.Resource;%0Aimport cn.luo.yuan.maze.model.goods.Goods;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0A%0A/**%0A * Created by luoyuan on 2017/7/6.%0A */%0Apublic class GoodsDialog %7B%0A    public void show(NeverEnd context)%7B%0A        ListView list = new ListView(context.getContext());%0A        List%3CGoods%3E goods = context.getDataManager().loadAllGoods();%0A        List%3CGoods%3E rGoodes = new ArrayList%3C%3E(goods.size());%0A        for(Goods g : goods)%7B%0A            if(g.getCount() %3E 0)%7B%0A                rGoodes.add(g);%0A            %7D%0A        %7D%0A        list.setAdapter(new GoodsAdapter(context, rGoodes));%0A        SimplerDialogBuilder.build(list, Resource.getString(R.string.close), null,context.getContext());%0A    %7D%0A%7D%0A

add boss