- 博客(4)
- 收藏
- 关注
转载 Android:onNewIntent()触发机制及注意事项
一、onNewIntent()在IntentActivity中重写下列方法:onCreate onStart onRestart onResume onPause onStop onDestroy onNewIntent 1、其他应用发Intent,执行下列方法:onCreateonStartonResume 发Intent的方法:?
2015-12-28 17:40:06 224
转载 android-文字的处理(最后一条 不用setCompoundDrawables 在text上加图片)
一、计算文字的大小 String timeStr = "00:00"; int textWidth = (int)Layout.getDesiredWidth(timeStr, 0, timeStr.length(), tp);二、文字加粗 TextPaint tp = text.getPaint(); tp.setFakeBoldText(true);三、
2015-12-14 21:13:28 295
转载 Robotium 运行时Installation error INSTALL_FAILED_VERSION_DOWNGRADE错误
最近折腾了一下Robotium自动化测试框架,发现问题还挺多,刚刚解决了一个问题,总算是把环境搞定了,可是一运行测试用例,发现又报Installationerror INSTALL_FAILED_VERSION_DOWNGRADE错误了。网上查了一下,说是AndroidManifest.xml的versionCode有点儿小了,应该改大一点儿就行了。默认是如下的: package="com.t
2015-11-20 15:21:22 236
原创 startActivity 添加动画
ActivityOptions opts = ActivityOptions.makeCustomAnimation(this, R.anim.task_open_enter, R.anim.no_anim);Bundle optsBundle = opts.toBundle();startActivity(intent, optsBundle);res/animtask_op
2015-11-19 20:22:37 892
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人