Transparent LinearLayout with buttons (Android)
I'm trying to make a menu with buttons, and my problem is that i want this menu to be over a camera view (I'm working on Augmented Reality). But if I make my menu appea开发者_Python百科r it makes the background black instead of having the video of my camera.
Any ideas how to make this background transparent? I tried with :
menu.setBackgroundColor(Color.TRANSPARENT);
but there is no modification :/...
OK. Then you can change the background of the menu as any transperent image. Or you can change the theme in Manifest file to black so that can shows the white background in your Application
Try: menu.setBackgroundColor(Color.alpha(0));
精彩评论