摘要: 引用:http://apps.hi.baidu.com/share/detail/23311276importjava.text.SimpleDateFormat;SimpleDateFormatformatter=newSimpleDateFormat("yyyy年MM月dd日HH:mm:ss");DatecurDate=newDate(System.currentTimeMillis());//获取当前时间Stringstr=formatter.format(curDate);可以获取当前的年月时分,也可以分开写:Java代码SimpleDateFormatsDateF 阅读全文
posted @ 2012-02-13 23:30 镇水古月 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 引用:http://www.eoeandroid.com/thread-83969-1-1.htmlprivate void setTime(){ StringBuilder buf = new StringBuilder(); CalendarUtil cu = new CalendarUtil(); String chineseMonth = cu.getChineseMonth(Integer.parseInt(getCurrentDate("yyyy")), Integer.parseInt(getCurrentDate("MM")), ... 阅读全文
posted @ 2012-02-13 23:25 镇水古月 阅读(260) 评论(0) 推荐(0) 编辑
摘要: 引用:http://hi.baidu.com/xdsh99/blog/item/1ae160ec0733dae5b2fb9591.html注:1.数据都是从前一个页面传递过来的; 2.不同区域设置不同的颜色,通过设置画笔的颜色即可; 3.左上角定点坐标为(0,0);4.包含画点,画线,画矩形,画椭圆,画圆形,写字package com.xdsh.weeklyaccount;import android.app.Activity;import android.content.Context;import android.content.Intent;import android.graphics 阅读全文
posted @ 2012-02-13 22:38 镇水古月 阅读(1028) 评论(0) 推荐(0) 编辑
摘要: 引用:http://blog.csdn.net/rhljiayou/article/details/72126201、首先说一下canvas类:Class OverviewThe Canvas class holds the "draw" calls. To draw something, you need 4 basic components: A Bitmap to hold the pixels, a Canvas to host the draw calls (writing into the bitmap), a drawing primitive (e.g. R 阅读全文
posted @ 2012-02-13 22:19 镇水古月 阅读(1550) 评论(0) 推荐(0) 编辑