tt_mc

导航

2012年11月6日 #

android事件处理总结--dispatchTouchEvent

摘要: 从今天解决的一个问题了解到, viewGroup的dispatchTouchEvent方法会在其onInterceptTouchEvent方法之前被触发.又搜了些资料,个人觉得最受用的总结如下:首先触发ACTIVITY的dispatchTouchEvent然后触发ACTIVITY的onUserInteraction然后触发LAYOUT的dispatchTouchEvent然后触发LAYOUT的onInterceptTouchEvent 供参考的文章蛮多的,我不再废话了:http://blog.csdn.net/iefreer/archive/2009/09/23/4586351.aspxhtt 阅读全文

posted @ 2012-11-06 15:20 tt_mc 阅读(425) 评论(0) 推荐(0) 编辑

android 使用Monkey进行压力测试

摘要: 项目中需要用到 Monkey 做压力测试,抽空去熟悉了下,各种命令就不废话了,官方文档有。 比如你可以用以下命令开启 Monkey 测试:adb shell monkey -v -v -p com.archermind.callstat --monitor-native-crashes --ignore-security-exceptions --kill-process-after-error --pct-trackball 0 --pct-nav 0 --pct-anyevent 0 --pct-appswitch 0 --pct-flip 0 --pct-majornav 10... 阅读全文

posted @ 2012-11-06 11:10 tt_mc 阅读(2662) 评论(1) 推荐(0) 编辑