会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
fulai_xy
博客园
首页
新随笔
联系
管理
订阅
2015年4月15日
android下水波纹效果实现
摘要: 自定义一个类,继承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
阅读(267)
评论(0)
推荐(0)
2015年4月13日
9patch的用法,简单两句就会用了。
摘要: 1 左边和上边 表示可以拉伸的区域2 下边和右边 表示内容可以填充的区域
阅读全文
posted @ 2015-04-13 20:36 fulai_xy
阅读(187)
评论(0)
推荐(0)
有关android.support.v7.app.ActionBarActivity错误的问题
摘要: 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
阅读(4477)
评论(0)
推荐(0)
2015年4月3日
android中fragment的使用及与activity之间的通信
摘要: 一.fragment的生命周期,具体方法什么时候调用就不说了。二 在activity中使用fragment和通信有两种常见的方式,1.静态的方式 (1)定义一个类继承Fragment,如 MyFragment,这里复写onCreateView()方法和onAttach()方法 (2)onCrea...
阅读全文
posted @ 2015-04-03 12:27 fulai_xy
阅读(3781)
评论(0)
推荐(0)
2013年11月10日
[转]CSS中继承性属性和非继承性的属性
摘要: 不可继承的: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
阅读(241)
评论(0)
推荐(0)
2013年10月26日
js中的attribute详解
摘要: Attribute是属性的意思,文章仅对部分兼容IE和FF的Attribute相关的介绍。attributes:获取一个属性作为对象getAttribute:获取某一个属性的值setAttribute:建立一个属性,并同时给属性捆绑一个值createAttribute:仅建立一个属性removeAttribute:删除一个属性getAttributeNode:获取一个节点作为对象setAttributeNode:建立一个节点removeAttributeNode:删除一个节点attributes可以获取一个对象中的一个属性,并且作为对象来调用,注意在这里要使用“[]”,IE在这里可以使用“()
阅读全文
posted @ 2013-10-26 11:03 fulai_xy
阅读(491)
评论(0)
推荐(0)
2013年10月8日
asp.net下载文件几种方式
摘要: 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
阅读(132)
评论(0)
推荐(0)
2013年9月25日
XmlNode与XmlElement区别 转载的
摘要: //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
阅读(183)
评论(0)
推荐(0)
2013年9月23日
JS中的attachEvent、addEventListener如何传递参数
摘要: Untitled Page 超链接link1 超链接link2
阅读全文
posted @ 2013-09-23 22:40 fulai_xy
阅读(330)
评论(0)
推荐(0)
使用navigator.userAgent来判断浏览器的类型
摘要: 正则表达式匹配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
阅读(670)
评论(0)
推荐(1)
下一页
公告