set SpenSurfaceView background to transparent

456 Views Asked by At

I am working with the SPen and the Note 3.

I was able to set the SCanvasView to have a transparent background in the SPen SDK.

But, now I am working with the Samsung Mobile SDK, which uses SpenSurfaceView.

The goal is to overlay the surface view on top of other Views.

mSCanvas = new SCanvasView(this);
...
mSCanvas.setSCanvasInitializeListener(new SCanvasInitializeListener() {
        @Override
        public void onInitialized() {
                       ...
                    mSCanvas.setBGColor(Color.TRANSPARENT);
}
1

There are 1 best solutions below

0
On

If you are using SpenPageDoc you could use:

mSpenPageDoc.setBackgroundColor(Color.TRANSPARENT);