2016年8月31日

在web应用中使用Log4j 2

摘要: Using Log4j 2 inWeb Applications(在web应用中使用Log4j 2) 来源:http://logging.apache.org/log4j/2.x/manual/webapp.html本文地址:http://blog.csdn.net/sushengmiyan/ar... 阅读全文

posted @ 2016-08-31 23:37 木鱼哥 阅读(613) 评论(0) 推荐(0) 编辑

08 ListView 优化的例子

摘要: package com.fmy.homework;import java.util.List;import com.fmy.homework.httputil.HttpUtil;import com.fmy.homework.myadapter.MyAdpter;import com.fmy.h... 阅读全文

posted @ 2016-08-31 20:19 木鱼哥 阅读(138) 评论(0) 推荐(0) 编辑

08 ListView 优化

摘要: ListVie的优化 1 固定ListView长宽高 如下图在清单文件中: 原因解释: 我们假设ListView 宽高为Wrap_content那么每次只要ListView加载一个item(某个条目)将会重新计算长宽高带来资源负担; 对比 我们先先来看看适配器的代码(Ba... 阅读全文

posted @ 2016-08-31 20:18 木鱼哥 阅读(133) 评论(0) 推荐(0) 编辑

08 BaseAdapter 和ListView总结

摘要: 第八天 ListView 列表视图 一,特点: >垂直滚动列表,是ViewGroup(容器),列表项使用Adapter填充 二,属性 > android:divider="@drawable/qdhline" item之间的分割线 可以用颜色#RGB 还可以用图片 android:divider... 阅读全文

posted @ 2016-08-31 19:32 木鱼哥 阅读(236) 评论(0) 推荐(0) 编辑

解析JSON的三种方式

摘要: JSONObject JSONObject jsonObject = new JSONObject(strJson); JSONArray jsonArray = jsonObject.getJSONArray("data"); {} Jsonstr bean ... 阅读全文

posted @ 2016-08-31 09:51 木鱼哥 阅读(348) 评论(0) 推荐(0) 编辑

导航