不说废话直切主题。
下面来看看通用的自定义surfaceView的配置吧。、
1,1继承sufaceView
1.2实现接口runnable(开启线程做好实时重绘)
1.3实现接口Callback(该接口的回调函数是)
1.4需要重写的方法(4)
callback重写的方法
surfaceCreated()
surfaceChanged()
surfaceDestroyed();
runnable重写的方法:
run();
不说废话直切主题。
下面来看看通用的自定义surfaceView的配置吧。、
1,1继承sufaceView
1.2实现接口runnable(开启线程做好实时重绘)
1.3实现接口Callback(该接口的回调函数是)
1.4需要重写的方法(4)
callback重写的方法
surfaceCreated()
surfaceChanged()
surfaceDestroyed();
runnable重写的方法:
run();