android graphic: surface view +ui widgets
摘要:http://blog.csdn.net/xiaominghimi/article/details/6099194里面有一个关键点 ,就是如果在xml中注册了surfaceview那么一定要提供两个参数的构造函数。更多地有关surfaceview应用的文章,看这里http://www.oschina.net/android/204/
阅读全文
posted @
2013-08-30 18:17
keniee
阅读(183)
推荐(0)
android: create your own personal project and join the github community
摘要:1) how to use the gitbub https://help.github.com/2)I want to create a project , like tomcat, however, it can answer some questions from babies.here are the steps.2.1 i already downloaded cocos2d-x code and make it work sucessfully refer to my previous passage.2.2) then I create my own repo in githu.
阅读全文
posted @
2013-08-29 10:54
keniee
阅读(323)
推荐(0)
android graphic:canvas
摘要:canvas中包含了作图的方法。 完成作图过程,最基本的四大组件是,canvas, bitmap, drawing prmitive, paint. 其中canvas是画布,包含了作图的方法。作图方法最终需要保存在bitmap当中。 作图的图元,如矩形,轨迹,字,bitmap(是一个图形),paint相当于颜料,它指定了作图的颜色和作图的风格。利用canvas作图,有几种方法,一般而言,用户使用view布局作图,这种方法适合对性能不敏感,并且控件不需要动态改变的情况。如果用户需要自己作图,如video game。则有两种方法。1)可以直接利用view,重载onDraw方法,调用canvas的d
阅读全文
posted @
2013-08-26 18:36
keniee
阅读(486)
推荐(0)
android graphic: how activity show itself?
摘要:there is a long jounery toward activity to show itself.the last steps that are most interesting are1) add view to wms.this is the best picture I have ever get to describe the process.1) a decor view is registed to wms. decor view works as the root of the view hierachy, it's actually a viewgroup
阅读全文
posted @
2013-08-25 11:25
keniee
阅读(377)
推荐(0)
Android graphic:surfaceview 挖洞过程的透明区域
摘要: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
阅读(3988)
推荐(0)
Android graphic: bitmap and it's principle
摘要: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
阅读(161)
推荐(0)
Android graphic, what's drawable, it's practice and principle
摘要: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
阅读(292)
推荐(0)
Android graphics: How an alert window is displayed?
摘要: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
阅读(415)
推荐(0)