详细可看: http://uisource.com/project/auto-scroll-view-pager/ 示例代码可看: https://github.com/Trinea/android-demo/blob/master/src/cn/trinea/android/demo/AutoSc...
分类:
移动开发 时间:
2014-10-11 10:01:25
阅读次数:
307
1、单独加载精灵对象
渲染效率低,浪费资源,不推荐用该方法。代码如下:注:代码只需贴到HelloWorldScene.cpp中即可。
//First,单独渲染每一个精灵帧
auto sprite = Sprite::create("grossini_dance_01.png");
sprite->setPosition(Vec2(visibleSize.width/2,visi...
分类:
其他好文 时间:
2014-10-11 00:48:04
阅读次数:
261
(1)在浮动子元素后面添加(2)父元素CSS添加z-index:1; overflow:hidden;(3)绝对定位/静止定位(absolute/fixed);(4)父元素也跟着浮动(5)父元素设定高度(6)最佳方案:父元素CSS添加:overflow:auto;_height:1%;
分类:
Web程序 时间:
2014-10-11 00:26:44
阅读次数:
304
删除数据后,执行下面语句: ALTER TBALE TableName AUTO_INCREMENT=1mysql删除比较一、DROP droptable tablename 绝招:删除内容和定义,释放空间。简单来说就是把整个表去掉.以后要新增数据是不可能的,除非新增一个表二、TRUN...
分类:
其他好文 时间:
2014-10-10 19:34:04
阅读次数:
161
==========AutoLayout &&Layout Constraints=====(available 6.0)--AutoLayout是一种基于约束的,描述性的布局系统。 Auto Layout Is a Constraint-Based, Descriptive Layout Syst...
分类:
移动开发 时间:
2014-10-10 17:56:34
阅读次数:
241
ie9以及主流浏览器ccs3transform:rotate(17deg)这个是效果用滤镜的话,这么写 filter:progid:DXImageTransform.Microsoft.Matrix(sizingMethod='auto expand', M11=0.7660444431189777...
分类:
Web程序 时间:
2014-10-10 17:23:44
阅读次数:
160
1 mysql支持enum,和set类型,sql server不支持2 mysql不支持nchar,nvarchar,ntext类型3 mysql的递增语句是AUTO_INCREMENT,而mssql是identity(1,1) MYSQL:create table basic(id int key...
分类:
数据库 时间:
2014-10-10 14:50:24
阅读次数:
580
请尊重他人的劳动成果,转载请注明出处:Android开发之裁剪照片
1. 从相册选择照片进行裁剪
从相册选择照片并裁剪:
/**
* 从相册选择照片进行裁剪
*/
private void cropFromGallery() {
// TODO Auto-generated method stub
Intent intent=new Inte...
分类:
移动开发 时间:
2014-10-10 00:14:01
阅读次数:
411
下面我们将使用Box2D物理引擎技术进行重构。使得关节能够掌握如何在Box2D使用关节约束。HelloWorldScene.cpp中与使用关节的相关代码如下:void HelloWorld::addNewSpriteAtPosition(Vec2 p)
{
log("Add sprite %0.2f x %02.f",p.x,p.y);
//创建物理引擎精灵对象A
auto sp...
分类:
其他好文 时间:
2014-10-09 22:31:57
阅读次数:
188
知识点速记:重用代码的方法:脚本包含require()、include(); 全局配置文件php.ini(auto_prepend_file/auto_append_file); 目录配置文件.htaccess(auto_prepend_file/auto_append_file)命名规范:函数名不...
分类:
其他好文 时间:
2014-10-09 22:14:37
阅读次数:
153