- 博客(8)
- 收藏
- 关注
原创 viewgroup浅析
查阅了网上的相关资料,在此做下笔记: 1. measure(并调用子视图的measure) 2. layout(并调用子视图的layout) 3 dispatchDraw(对canvas进行操作(translate),绘制子视图) 下边是我写的一个例子 public class CustomLayout extends View { public CustomLayou
2012-09-25 13:07:54
310
转载 模拟器上安装和卸载apk
1.启动模拟器 android list avd emulator -avd [avdname] 2.安装apk adb install path/*.apk 3.卸载apk adb shell cd /data/app ls rm *.apk
2012-04-10 11:17:57
271
转载 symbian socket示例
#ifdef __WINS__ _LIT(KProxy, "www.baidu.com"); #else _LIT(KProxy, "10.0.0.172"); #endif const TInt KPort = 80; _LIT8(KPostData, "GET http://www.baidu.com/ HTTP/1.1\r\nHost: www.baidu.com\r\nUs
2012-02-28 17:27:18
536
转载 字符串定位
int strloc(char* str, char c) { int pos=0; while (str[pos] && str[pos] != c) { pos++; } if (str[pos]) return pos; else return -1; } int strloc(char* str1, char* st
2012-02-25 10:36:28
402
转载 symbian 列表
symbian自定义列表,支持拖拽功能,有阻尼效果 void CListContainer::MoveUp(TUint aDistance) { TPoint tl(0,0); TInt cavasHeight = iCavas->SizeInPixels().iHeight; TInt count = iItemArray.Count(); TBool meet
2012-02-25 10:35:58
238
转载 mac os
1. 汇编 #hello.s .section .data, .section .text, .globl _start _start: movl $1, %eax movl $4, %ebx int $0x80 as hello.s -o hello.o -arch i386 ld hello.o -e _start -o hell
2012-02-25 10:35:18
288
转载 xcode 打包
需要制作成ipa安装包,方便安装在iPad或iPhone上。 第一步,新建一个文件夹,名字任意。找一个不大于500*500的jpg图片,改名为:iTunesArtwork,注意不能有后缀名。 第二步,建立一个文件夹,名为:Payload,把刚才编译的BargainSale.app拷贝到这个文件夹里面。 第三部,修改app里面的Info.plist文件,windows下可以用Ple
2012-02-25 10:34:39
557
转载 xmpParser(sax)
void CXmlParser::ParseL(const TDesC& aDocument) { /* * li ming */ if (iObserver == NULL) {//不存在观察者 return; } TPtrC16 documentPtr(aDocument); CDesCArrayFlat* tagStack = new (ELeave) CDesCArr
2012-02-25 10:32:58
224
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人