2013年8月23日
摘要: 1) 透明区域收集的激发机制 ViewRootImpl::PerformTraversal 函数作图过程中, 满足一些条件时,就会调用gathertransparentregion来挖洞。 条件是 1) view上面有一个surfaceview 2) didlayout is true. didlayout 是真的来源一般是调用了requestlayout()函数。 一般当view的size或者透明性发生了修改的时候,这个函数会被调用。 requestLayout:当view确定自身已经不再适合现有的区域时,该view本身调用这个方法要求parent view重新调用他的onMeasure . 阅读全文
posted @ 2013-08-23 17:54 keniee 阅读(3715) 评论(0) 推荐(0) 编辑
  2013年8月22日
摘要: this is a good passage on how to use bitmap to show a picture on androidhttp://www.cnblogs.com/feisky/archive/2010/01/10/1643460.html 阅读全文
posted @ 2013-08-22 16:07 keniee 阅读(155) 评论(0) 推荐(0) 编辑
摘要: What is Drawable Drawable.java中,对drawable有一段注释。drawable是something can be drawn的一个抽象。 我们可以把一个resource对象,变成drawable, 然后显示到屏幕。 drawable正是提供了这样的api 。drawable和view不一样,它没有任何和user进行交互的能力。Drawable -1)作为Android平下通用的图形对象,它可以装载常用格式的图像,比如GIF、PNG、JPG,当然也支持BMP,当然还提供一些高级的可视化对象,比如 渐变、图形等2) 它还可以往view的canvas上面,直接... 阅读全文
posted @ 2013-08-22 10:13 keniee 阅读(265) 评论(0) 推荐(0) 编辑
  2013年8月18日
摘要: Android graphics: How an alert window is displayed?一、initilization and data structure.AlertDialog inherites from Dialog and it hold a member of AlertController mAlert.In dialog.java, Dialog in constrcuted. it creates a new phoneWindow, and store it in it's mWindow member.the window is registered 阅读全文
posted @ 2013-08-18 15:47 keniee 阅读(405) 评论(0) 推荐(0) 编辑
  2013年7月21日
摘要: 一)建立一个新的coscos2d-x project1)在ubuntu下面,建立编译环境的文章:http://blog.csdn.net/jamesjiangchn/article/details/8734586step 2)copy the java lib into the new projecthttp://www.mobibrw.com/?p=332二 从coscos2d-x 已经有的Project 创建项目example:1)cd cocos2d-x-2.1.4/samples/Cpp/TestCpp/proj.android2)edit build_native.sh, write 阅读全文
posted @ 2013-07-21 22:37 keniee 阅读(241) 评论(0) 推荐(0) 编辑
  2013年3月20日
摘要: Android graphic: How vsync signal is passed from LCD to app?step 1: from LCD to eventthread.EventThread and SF are two different threads in one process. it take care of dispatch vsyncsignal to App.0) let's begin from./frameworks/native/services/surfaceflinger/DisplayHardware/HWComposer.cppHWComp 阅读全文
posted @ 2013-03-20 14:45 keniee 阅读(2323) 评论(0) 推荐(0) 编辑