RT, according to the online method,
setEGLConfigChooser (8, 8, 8, 8, 16, 0);
getHolder () setFormat (PixelFormat.TRANSLUCENT);.
setZOrderOnTop (true);
Add this code after GLsurfaceview became transparent background setting, but other problems ensue, the project is a frame layout to use, the bottom level is probably a imageview as a background (guaranteed to see the background, so just let GLsurfaceview transparent) , then GLsurfaceview, only then, button, etc., setZOrderOnTop (true); later this setting will result GLsurfaceview went to the top level, blocking the button and other controls, the great God to ask you this question Zage solve ah ~
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
demo.setZOrderOnTop (true) ;/ / the view into the top
demo.getHolder (). setFormat (PixelFormat.TRANSLUCENT) ;/ / set transparent
Some versions are not effective, high version you can!
Reply:
demo.getHolder (). setFormat (PixelFormat.TRANSLUCENT) ;/ / set transparent, but demo.setZOrderOnTop (true) does not have this, then this is still opaque - turn into a top view, blocking the button ......
Reply:
Not encountered this situation, so if the button is not done GLsurfaceview inside, how is transparent, button bars are visible, unless there is overlap controls
Reply:
relatives ah I have encountered this problem, if you can discuss the next
If you have a solution, provided under trouble
Reply:
This problem has a solution yet? Jia. . . . . . . .
No comments:
Post a Comment