简体   繁体   中英

set SpenSurfaceView background to transparent

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);
}

如果您使用的是SpenPageDoc,则可以使用:

mSpenPageDoc.setBackgroundColor(Color.TRANSPARENT);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM