摘要: 使用的是 net.htmlparesr.jericho.Source;包中的Source,需要导入jaricho-html-3.1.jar的外部jar包一下为用这个包解析豆瓣网站的验证码的代码 1 URL url = new URL("http://www.douban.com/accounts/login"); 2 URLConnection conn = url.openConnection(); 3 //得到服务器返回的html连接 转化成的html的对象 4 Source source = new Source(conn... 阅读全文
posted @ 2013-01-23 21:11 王世桢 阅读(493) 评论(0) 推荐(0) 编辑
摘要: 1.布局的背景可以引入一个layout-list.xml代表设置变换的图片,布局上面 中间 结束的颜色不同 1 <?xml version="1.0" encoding="utf-8"?> 2 <layer-list 3 xmlns:android="http://schemas.android.com/apk/res/android"> 4 <item> 5 <shape> 6 <gradient 7 android:startColor="#ffa6a6a6" 阅读全文
posted @ 2013-01-23 21:07 王世桢 阅读(242) 评论(0) 推荐(0) 编辑