摘要: 1.启动 context.startservice 来启动service2.service 中新建内部类 extens thread3.重写新建内部类中的run run中增加循环,循环中加Thread.sleep(1000)来延迟4.service中的onCreate中增加 新建内部类型变量的start(); 阅读全文
posted @ 2012-11-21 22:57 镇水古月 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 引用:http://www.codefans.net/jscss/code/1064.shtml<html><head><title>边框样式</title> </head><body> <p style=border-style:none>无边框</p> <p style=border-style:dotted>点线式边框</p> <p style=border-style:dashed>破折线式边框</p> <p style=border-s 阅读全文
posted @ 2012-11-21 16:04 镇水古月 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 引用:http://www.open-open.com/lib/view/open1325749794953.htmlandroid 实现图片的翻转1Resources res =this.getContext().getResources();2img = BitmapFactory.decodeResource(res, R.drawable.aa);3Matrix matrix =newMatrix();4matrix.postRotate(180);/*翻转180度*/5intwidth = img.getWidth();6intheight = img.getHeight();7im 阅读全文
posted @ 2012-11-21 14:36 镇水古月 阅读(332) 评论(0) 推荐(0) 编辑
摘要: 引用:http://www.linuxidc.com/Linux/2012-05/59907.htmHTML5 里面对于文件上传有了极大的增强,曾几何时,当我们需要实现一个多文件双传功能,必须一次指定多个<input type="file>,如果要上传10个文件就必须指定10行,因为HTML4 里面,所有的<input type="file>只支持单个文件选择、但是在HTML5里面,可以给<input type="file"> 加上一个multiple属性,这样这个空间就直接支持多文件上传了.废话不多说,献上代码:&l 阅读全文
posted @ 2012-11-21 14:28 镇水古月 阅读(2348) 评论(0) 推荐(0) 编辑
摘要: 引用:http://blog.sina.com.cn/s/blog_49dc168d010009pi.htmlhttp://15daysofjquery.com/http://jquery.com/http://jquery.org.cnhttp://jquery.com/plugins/http://interface.eyecon.ro/demos/sort.html/* 这个是15天学jquery的第十五天的一个demo,但是中文的翻译档还没出来,所以就先拿个链接看看了。。厚厚 */效果库:Background-Position Animationshttp://www.corrupt- 阅读全文
posted @ 2012-11-21 10:04 镇水古月 阅读(193) 评论(0) 推荐(0) 编辑