SurfaceView 初始化时机

通过findViewById 创建SurfaceView 对象后,并不会初始化。
    
SurfaceView.getHolder().addCallback(callback);调用该方法后,SurfaceView 才会被初始化,回调surfaceCreated方法

你可能感兴趣的:(Android知识库,android,surfaceCreated,SurfaceView)