文件名称:clock
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Text]
- 上传时间:
- 2012-11-26
- 文件大小:
- 2kb
- 下载次数:
- 0次
- 提 供 者:
- x**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
时钟界面,时钟界面的操作分为两块,首先是对Spinner的设置,要设置为时间格式,
通过API 的查找,找到日期格式的函数,然后经过字符串的截取得到时间格式,通过线程的学习,设置时间每隔一秒改变一次。其次是画时钟界面,首先计算圆心画一个圆,并在圆上标出12个点数和三根线段(起点坐标为圆心),通过对Spinner监听得到的返回值并进行坐标的计算,画出时针,分针,秒针的终点坐标位置。
-Clock interface clock interface operation is divided into two, the first is the setting for Spinner To set the time format, date format functions through the API to find, find, and then after the interception of a string time format, through the thread of learning set time every second change. Followed by painting clock interface, first calculate the center of the circle to draw a circle, and the circle marked 12 points and three segments (starting coordinates for the center of the circle), Spinner listens return value and the calculation of the coordinates, draw clockwise minute, second coordinates of the endpoint position.
通过API 的查找,找到日期格式的函数,然后经过字符串的截取得到时间格式,通过线程的学习,设置时间每隔一秒改变一次。其次是画时钟界面,首先计算圆心画一个圆,并在圆上标出12个点数和三根线段(起点坐标为圆心),通过对Spinner监听得到的返回值并进行坐标的计算,画出时针,分针,秒针的终点坐标位置。
-Clock interface clock interface operation is divided into two, the first is the setting for Spinner To set the time format, date format functions through the API to find, find, and then after the interception of a string time format, through the thread of learning set time every second change. Followed by painting clock interface, first calculate the center of the circle to draw a circle, and the circle marked 12 points and three segments (starting coordinates for the center of the circle), Spinner listens return value and the calculation of the coordinates, draw clockwise minute, second coordinates of the endpoint position.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
clock.txt