- 博客(4)
- 资源 (1)
- 收藏
- 关注
原创 speeding up app in android
1. View.onDraw( ) method is a very performance-criticalpiece of code, so it’s best to do as little as possible there. • If possible, avoid doing any object allocations in the method onDraw( ). • P
2012-06-19 15:29:49 473
原创 onDraw() and invalidate()
1. invalidate()定义脏的区域,而这两个区域会在未来的某个点上被刷新,及调用ondraw()。 2. ondraw方法虽然全部都会执行,但在界面上只刷新 脏 的区域。 3. 例如:onKeyDown()的每一次运行都会触发界面的刷新。
2012-06-16 15:47:13 819
原创 why don't we often use inner class in android development?
every new inner class takes up an extra 1KB of memory.
2012-06-12 11:49:44 431
原创 toggle style menu contribution ,which is not persisted
This is the definition,Menu Contributions/Toggle Button Command. Use the RegistryToggleState has two reasons: It implements IExecutableExtension. So you can specify the default values in the plu
2012-06-04 20:00:28 843
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人