摘要: 效果如图,具体功能是得到一个最大数量值5,然后构造一个这样的列表让用户选择。首先定义一个数量值:int num = 5; //指定数量值然后构造String数组 String[] nums = new String[(int) num]; for (int i = 0; i < nums.length; i++) { nums[i] = "" + (i + 1); } 弹出AlertDialogfinal Builder b = new Alert... 阅读全文
posted @ 2013-05-14 15:01 有梦想的小人物 阅读(413) 评论(0) 推荐(0)
摘要: aa=aa.replaceAll("\"ccfsID\":\"[0-9]*\"", "\"ccfsID\":\""+id1+"\"");aa为json字符串,如:{"items":[{"dishprice":30,"ccfsID":"","order.item.id":1,"zuofaid":"","zuof 阅读全文
posted @ 2013-05-14 14:16 有梦想的小人物 阅读(3799) 评论(0) 推荐(0)