2012年4月2日
摘要: px = density * dip + 0.5 阅读全文
posted @ 2012-04-02 15:14 leaving 阅读(133) 评论(0) 推荐(0)
摘要: 1. 实现UncaughtExceptionHandler接口:uncaughtException方法2. 继承Application,在OnCreate方法中使用Thread.setDefaultUncaughtExceptionHandler注册异常处理类 阅读全文
posted @ 2012-04-02 15:12 leaving 阅读(296) 评论(0) 推荐(0)
摘要: 1. 为了避免出现异常: java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receive a notification..... 更新数据之前getListView().setVisibility(View.GONE),然后mAllAdapter.notifyDataSetChanged(),更新之后getListView().setVisibility(View.GONE),可以避免 阅读全文
posted @ 2012-04-02 14:10 leaving 阅读(194) 评论(0) 推荐(0)