摘要: HashMap是无序排列,Map集合中TreeMap和LinkedHashMap是有序排列,TreeMap的key是有顺序的, 但默认的不是插入的顺序,为了保证JSON化后的数据按顺序显示,可以使用LinkedHashMap,它内部是一 个链表,保持插入的顺序。 阅读全文
posted @ 2016-04-27 00:02 姐姐来了 阅读(169) 评论(0) 推荐(0) 编辑
摘要: /** * 根据手机的分辨率从 dp 的单位 转成为 px(像素) */ public static int dip2px(Context context, float dpValue) { final float scale = context.getResources().getDisplayM 阅读全文
posted @ 2016-04-26 09:53 姐姐来了 阅读(136) 评论(0) 推荐(0) 编辑