android Activity 变成Dialog的方法
摘要:这是sms_dialog.xmlpackage com.sms.activity;import android.app.Activity;import android.ap...
阅读全文
posted @
2013-01-23 14:53
纯洁的坏蛋
阅读(499)
推荐(0)
判断两条线段相交的两种算法
摘要:// Returns true if the lines between v0v1 and t0t1 cross// If the lines cross, the intersection between them will// be stored in intersectionPointbool...
阅读全文
posted @
2013-01-22 16:42
纯洁的坏蛋
阅读(588)
推荐(0)
cocos2d-x 关于CCpoint的一些算法或者说扩展
摘要:/** Returns opposite of point. @return CCPoint @since v0.7.2 */static inline CCPointccpNeg(const CCPoint v) //计算关于原点的对称点{ return ccp(-v.x, -v.y)...
阅读全文
posted @
2013-01-21 17:11
纯洁的坏蛋
阅读(338)
推荐(0)
cocos2dx教程收藏
摘要:1.cocos2dxbox2d实现物体爆裂效果http://blog.csdn.net/dragoncheng/article/details/7787471
阅读全文
posted @
2013-01-20 22:19
纯洁的坏蛋
阅读(107)
推荐(0)
Android应用程序开发常见问题 FAQ
摘要:问:在平时Android开发时突然执行程序,出现了 Application does not specify a android.test.InstrumentationTestRunner instrumentation or does not declare uses- libraryandro...
阅读全文
posted @
2013-01-20 18:40
纯洁的坏蛋
阅读(230)
推荐(0)
android sqlite自定义DBHelper
摘要:package com.sms.db;import java.io.BufferedReader;import java.io.File;import java.io.FileInputStream;import java.io.FileOutputStream;import java.io.Fil...
阅读全文
posted @
2013-01-19 13:16
纯洁的坏蛋
阅读(1325)
推荐(0)
linux Y480安装有线网卡驱动
摘要:wget https://www.kernel.org/pub/linux/kernel/projects/backports/2013/03/04/compat-drivers-2013-03-04-u.tar.bz2./scripts/driver-select alxmakesudo make...
阅读全文
posted @
2013-01-10 16:46
纯洁的坏蛋
阅读(211)
推荐(0)
Y480N linux安装显卡驱动
摘要:I got the GPU running on Lenovo Y480P on Ubuntu 12.04/12.10. It has Nvidia GT640M LE. There is a bug in ACPI module. It detects the wrong handle. Use ...
阅读全文
posted @
2013-01-10 12:46
纯洁的坏蛋
阅读(193)
推荐(0)
c++ vector反转reverse
摘要:template void reverse ( BidirectionalIterator first, BidirectionalIterator last);如果不是改变原来的容器,而是翻转之后放在新容器里面,直接用reverse_copy ( BidirectionalIterator f...
阅读全文
posted @
2013-01-02 18:58
纯洁的坏蛋
阅读(15371)
推荐(0)