0

Surface View有一个没有的getSurfaceHolder()方法TextureView。深入研究源代码后,我想知道是否可以实现getSurfaceHolder()in Textureview?有人试过吗?

我们有很多事情需要实现。是否可以使用来实现textureview?有什么建议么?

new SurfaceHolder() {
                @Override
                public void addCallback(Callback callback) {

                }

                @Override
                public void removeCallback(Callback callback) {

                }

                @Override
                public boolean isCreating() {
                    return false;
                }

                @Override
                public void setType(int type) {

                }

                @Override
                public void setFixedSize(int width, int height) {

                }

                @Override
                public void setSizeFromLayout() {

                }

                @Override
                public void setFormat(int format) {

                }

                @Override
                public void setKeepScreenOn(boolean screenOn) {

                }

                @Override
                public Canvas lockCanvas() {
                    return null;
                }

                @Override
                public Canvas lockCanvas(Rect dirty) {
                    return null;
                }

                @Override
                public void unlockCanvasAndPost(Canvas canvas) {

                }

                @Override
                public Rect getSurfaceFrame() {
                    return null;
                }

                @Override
                public Surface getSurface() {
                    return null;
                }
            }
4

0 回答 0