开发者

Transparent LinearLayout with buttons (Android)

开发者 https://www.devze.com 2023-03-29 23:22 出处:网络
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).

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

0

精彩评论

暂无评论...
验证码 换一张
取 消