摘要: /** * @author gongchaobin * * Media录音类 */public class AudioRecoder { private static final String TAG = AudioRecoder.class.getSimpleName(); private MediaRecorder mRecorder; private MediaPlayer mPlayer; public static AudioRecoder instance; private AudioRecoder() { super(... 阅读全文
posted @ 2012-10-18 11:55 暗殇 阅读(207) 评论(0) 推荐(0)
摘要: /** * 获取当前的时间 * 时间格式:2012-01-12 */ public static String getNowTime(Date date){ SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd"); String nowTime = format.format(date); print(nowTime); return nowTime; } /** * 得到当月的第一天 */ p... 阅读全文
posted @ 2012-10-18 11:54 暗殇 阅读(153) 评论(0) 推荐(0)
摘要: /** * @author gongchaobin * * 翻书效果 * 2012-9-25 */public class TurnPage extends View{ private static final String TAG = TurnPage.class.getSimpleName(); private int mWidth = 620; private int mHeight = 770; private int mCornerX = 0; // 拖拽点对应的页脚 private int mCornerY = 0; private Path m... 阅读全文
posted @ 2012-10-18 11:52 暗殇 阅读(584) 评论(0) 推荐(1)