(看了下1.5的平台的源代码,实话说不是很懂!汗颜。暂且随便记录下,以后再回头理解)

SurfaceView的解释:

Provides a dedicated drawing surface embedded inside of a view hierarchy。

Access to the underlying surface is provided via the SurfaceHolder interface, which can be retrieved by calling getHolder().

此类提供了函数:getHolder()返回一个SurfaceHolder对象,用于控制surface.

SurfaceHolder的解释:

Abstract interface to someone holding a display surface. Allows you to control the surface size and format, edit the pixels in the surface, and monitor changes to the surface

即:它是一个用于控制surface的接口,它提供了控制surface 的大小,格式,上面的像素,即监视其改变的。

SurfaceHolder.Callback的解释:

A client may implement this interface to receive information about changes to the surface。

实现此接口的类,必须实现这几个函数:surfaceChanged()、surfaceCreated()、surfaceDestroyed()。这几个函数,会在相应的事件发生后,并调用,即surfaceview的函数会被调用。







http://apps.hi.baidu.com/share/detail/32312551

更多相关文章

  1. C语言函数的递归(上)
  2. 第十一篇 ANDROID 系统网络连接和管理机制
  3. Android(安卓)4.0.1_r1源代码发布,更新获取方法
  4. Android4.4以太网移植问题
  5. Android(安卓)8/9高通平台客制化虚拟导航按键隐藏
  6. Android(安卓)Binder 修炼之道(四)Binder 系统C++ 发送数据过程以
  7. android   动态改变图片大小
  8. android中如何发送一个广播
  9. Android(安卓)Audio 数据流详解

随机推荐

  1. Android添加快捷方式(Shortcut)到手机桌
  2. Android之辅助服务下篇————Accessibi
  3. Android 设置EditText不会自动弹出键盘
  4. Android个人开发笔记
  5. Android studio 3.1.3 无法获取pom文件
  6. Android开发实现拖动效果
  7. Android(安卓)获取当前系统输入法和修改
  8. 让Android Studio支持系统签名
  9. Bitmap切割,GridView显示,更新
  10. Android '记住密码'功能