文章中的内容参考Dev Guide中的Drawable Resources,英文好的朋友可以直接去读英文。总结这篇文章的目的是自己在使用drawable资源遇到一些问题跟大家分享下,同时整理下自己对drawable的理解。
drawable资源共有10种,包括Bitmap文件、Nine-Path文件、Layer List、State List、Level list、Transit...
分类:
移动开发 时间:
2014-08-15 14:36:58
阅读次数:
344
CALayer(层)是屏幕上的一个矩形区域,在每一个UIView中都包含一个根CALayer,在UIView上的所有视觉效果都是在这个Layer上进行的。CALayer外形特征主要包括:1、层的大小尺寸2、背景色3、内容(可以填充图片或者使用Core Graphics绘制的内容)4、矩形是否使用圆角...
分类:
移动开发 时间:
2014-08-15 14:29:08
阅读次数:
313
//GameScene.h
#include?"cocos2d.h"
class?GameScene?:?public?cocos2d::Layer
{
public:
????static?cocos2d::Scene*?createScene();
????
????virtual?bool?init();
????
????...
分类:
其他好文 时间:
2014-08-14 21:12:30
阅读次数:
230
asp.net 快速建站。Codematic ; 改生成模块;生成方法; AspNetPager;Newtonsoft.Json;GeneralMatrix.dll; jquery.flot.js,条形图多条并列,轴标题,tooltips, layer.js? dateformat? js统计 矩阵 拟合 ...
分类:
其他好文 时间:
2014-08-14 21:11:29
阅读次数:
174
Problem:How to create a layer that looks like your notification center's or control center's backgroundSolution:Using UIImage+ImageEffects to Create a...
分类:
移动开发 时间:
2014-08-14 16:31:38
阅读次数:
253
UIView *v=[[UIView alloc]initWithFrame:CGRectMake(10, 10, 100, 100)]; v.backgroundColor=[UIColor yellowColor];//v.layer.masksToBounds=YES;这行去掉 v.layer...
分类:
移动开发 时间:
2014-08-14 16:09:28
阅读次数:
253
KineticJS教程(6) 作者: ysm 6.拖拽6.1.拖拽功能要实现Kinetic对象的拖拽功能很简单,只需要将图形对象的draggable属性设为true就可以了。这种拖拽功能还可以应用到组(Group)、层(Layer)和舞台(Stage),设置方法类似。不过要注意的是,应用到组或层上时...
分类:
Web程序 时间:
2014-08-14 13:45:58
阅读次数:
242
一:注意事项 1.页面需导入jQuery(版本在1.9+(推荐)否则会出现窗体无法关闭等异常)二:信息框 1.弹出简单窗体(带图标)1 layer.alert(msg, icon, fn); icon取值(0-16):0警告1正确(√)2错误(×)8哭脸9笑脸 2.询问弹窗1 layer.c...
分类:
其他好文 时间:
2014-08-13 18:16:36
阅读次数:
347
在Layout cross-section中设置正在使用的差分对的差分阻抗为100欧,打开D:\diffPair\PCI2.brd。
(1)执行Setup->Cross-Section,弹出Layout Cross Section,在右下角选中Show Single Impedance,如图,Top层的阻抗为65.762欧:
(2)单击Top前的“2”,单击右键,选择Add Layer...
分类:
其他好文 时间:
2014-08-13 14:57:06
阅读次数:
259
+ (Class)layerClass; 每个UIView对象都有一个隐式层(underlying layer),即一个CALayer对象。该方法返回隐式层所属的类。通常为CALayer类型。不建议创建CALayer的子类,如确实需要CALayer子类。需实现该方法,并返回子类...
分类:
其他好文 时间:
2014-08-13 00:49:44
阅读次数:
246