摘要: package com.zipingfang.app.yawan.base;import java.util.Stack;import android.content.Context;import android.view.View;import android.view.ViewGroup;/*** @category View管理* @author yuepengfei* */public class ViewUtil implements ViewUtilInterface {private Stack<View> mViews;@Overridepublic void ad 阅读全文
posted @ 2013-06-03 15:25 yuepengfei 阅读(272) 评论(0) 推荐(0)
摘要: package com.zipingfang.app.yawan.util;import android.util.Log;/*** @author yuepengfei*/public class MyLog {private static int LOGLEVEL = 10;private final static int VERBOSE = 1;private final static int DEBUG = 2;private final static int INFO = 3;private final static int WARN = 4;private final static 阅读全文
posted @ 2013-06-03 13:18 yuepengfei 阅读(151) 评论(0) 推荐(0)
摘要: package com.zipingfang.app.yawan.util;import java.io.File;import java.lang.ref.SoftReference;import java.util.HashMap;import java.util.concurrent.ExecutorService;import java.util.concurrent.Executors;import com.zipingfang.app.yawan.ConstantValues;import android.content.Context;import android.graphic 阅读全文
posted @ 2013-05-31 15:05 yuepengfei 阅读(233) 评论(0) 推荐(0)
摘要: /** * 处理时间 * * @param timestamp * @return */ public static String fixTime(String timestamp) { if (timestamp == null || "".equals(timestamp)) { return ""; } try { long _timestamp = Long.parseLong(timestamp) * 1000; if (System.currentTimeMillis() - _timestamp < 1 * 60 * 1000) { 阅读全文
posted @ 2013-05-05 15:12 yuepengfei 阅读(120) 评论(0) 推荐(0)
摘要: private static Toast mToast; /** * 此方法Toast不会无限叠加时间 杜绝多次调用横长时间Toast不消失的问题 * @param ctx * @param msg * @param time */ public static void showToast(Context ctx, String message, int time) { if (null == mToast) { mToast = new Toast(ctx); View view = View.inflate(ctx, R.layout.view_toast, null... 阅读全文
posted @ 2013-05-05 15:11 yuepengfei 阅读(166) 评论(0) 推荐(0)
摘要: 直接上干货/** * @param rawPath * 原图地址 * @param dstPath * 裁剪后地址 * @param width * 想要的图片宽(宽不能大于高) * @param height * 想要的图片高(宽不能大于高) * */ public static Bitmap cropBitmap(String rawPath, String dstPath, int width, int height) { Bitmap bitmap; Bitmap crop... 阅读全文
posted @ 2013-05-05 14:52 yuepengfei 阅读(464) 评论(0) 推荐(0)