摘要: 自定义一个类,继承View,直接上代码了,比较简单public class MyRing extends View { private List listWave;// 波纹list private int[] colors = { Color.BLUE, Color.GREEN, Color.YE... 阅读全文
posted @ 2015-04-15 17:22 fulai_xy 阅读(261) 评论(0) 推荐(0) 编辑
摘要: 1 左边和上边 表示可以拉伸的区域2 下边和右边 表示内容可以填充的区域 阅读全文
posted @ 2015-04-13 20:36 fulai_xy 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 1 有关android.support.v7.app.ActionBarActivity错误的问题 (1)导入appcompat_v7的项目,设置 Properties->Android->勾选 Is library (2)在出现错误的工程 设置 Properties->Android->add->... 阅读全文
posted @ 2015-04-13 20:05 fulai_xy 阅读(4452) 评论(0) 推荐(0) 编辑
摘要: 一.fragment的生命周期,具体方法什么时候调用就不说了。二 在activity中使用fragment和通信有两种常见的方式,1.静态的方式 (1)定义一个类继承Fragment,如 MyFragment,这里复写onCreateView()方法和onAttach()方法 (2)onCrea... 阅读全文
posted @ 2015-04-03 12:27 fulai_xy 阅读(3756) 评论(0) 推荐(0) 编辑
摘要: 不可继承的:display、margin、border、padding、background、height、min-height、max- height、width、min-width、max-width、overflow、position、left、right、top、 bottom、z-index、float、clear、table-layout、vertical-align、page-break-after、 page-bread-before和unicode-bidi。不可继承:也就是指子节点不能继承父节点的属性,~~~ 不可继承属性:盒子模型相关的(margin border pad 阅读全文
posted @ 2013-11-10 13:22 fulai_xy 阅读(235) 评论(0) 推荐(0) 编辑
摘要: Attribute是属性的意思,文章仅对部分兼容IE和FF的Attribute相关的介绍。attributes:获取一个属性作为对象getAttribute:获取某一个属性的值setAttribute:建立一个属性,并同时给属性捆绑一个值createAttribute:仅建立一个属性removeAttribute:删除一个属性getAttributeNode:获取一个节点作为对象setAttributeNode:建立一个节点removeAttributeNode:删除一个节点attributes可以获取一个对象中的一个属性,并且作为对象来调用,注意在这里要使用“[]”,IE在这里可以使用“() 阅读全文
posted @ 2013-10-26 11:03 fulai_xy 阅读(476) 评论(0) 推荐(0) 编辑
摘要: protected void Button1_Click(object sender, EventArgs e) { /* 微软为Response对象提供了一个新的方法TransmitFile来解决使用Response.BinaryWrite 下载超过400mb的文件时导致Aspnet_wp.exe进程回收而无法成功下载的问题。 代码如下: */ Response.ContentType = "application/x-zip-compressed"; Response.AddHeader("Content-Disposition", "at 阅读全文
posted @ 2013-10-08 15:54 fulai_xy 阅读(125) 评论(0) 推荐(0) 编辑
摘要: //XmlNode生成XMLXmlDocument xmlnDoc = new XmlDocument();XmlNode xmlnRoot = xmlnDoc.CreateNode(XmlNodeType.Element, "nRoot", String.Empty);XmlNode itemNode = null;for (int i = 0; i Code0 Name0 Code1 Name1 Code2 Name2 //XmlElement生成XMLXmlDocument xmleDoc = new XmlDocument();XmlElement xmleRoot 阅读全文
posted @ 2013-09-25 10:51 fulai_xy 阅读(176) 评论(0) 推荐(0) 编辑
摘要: Untitled Page 超链接link1 超链接link2 阅读全文
posted @ 2013-09-23 22:40 fulai_xy 阅读(319) 评论(0) 推荐(0) 编辑
摘要: 正则表达式匹配functionuserBrowser(){ varbrowserName=navigator.userAgent.toLowerCase(); if(/msie/i.test(browserName)&&!/opera/.test(browserName)){ alert("IE"); return; }elseif(/firefox/i.test(browserName)){ alert("Firefox"); return; }elseif(/chrome/i.test(browserName)&&/w 阅读全文
posted @ 2013-09-23 11:03 fulai_xy 阅读(661) 评论(0) 推荐(1) 编辑