文件名称:clock
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:1.96kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
时钟界面,时钟界面的操作分为两块,首先是对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
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.