摘要: import java.security.MessageDigest; public class MD5Encoder { public static String encode(String string) throws Exception { byte[] hash = MessageDigest.getInstance("MD5").digest(str... 阅读全文
posted @ 2016-11-14 14:31 ecollab 阅读(128) 评论(0) 推荐(0) 编辑
摘要: xUtils的BitmapUtils模块用的就是三级缓存,在项目中尽量还是应用BitmapUtils 三级缓存(机制) import com.itheima.zhsh66.R; import android.graphics.Bitmap; import android.widget.ImageVi 阅读全文
posted @ 2016-11-14 14:30 ecollab 阅读(230) 评论(0) 推荐(0) 编辑
摘要: ListView、GridView显示组图,处理机制相同 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:l 阅读全文
posted @ 2016-11-14 09:09 ecollab 阅读(300) 评论(0) 推荐(0) 编辑
摘要: 广告轮播条播放 if (mHandler == null) {//在此初始化mHandler , 保证消息不重复发送 mHandler = new Handler() { public void handleMessage(android.os.Message msg) { int currentI 阅读全文
posted @ 2016-11-14 08:52 ecollab 阅读(865) 评论(0) 推荐(0) 编辑