How to achieve a menu similar to this one in the image? How can I display such a menu with semi-transparent background where I can see camera preview. What is the name of that kind of menu?
Asked
Active
Viewed 890 times
0
-
1create a translucent image which will have 50% opacity and set it their background... – Akarsh M Dec 15 '15 at 05:28
-
http://stackoverflow.com/questions/15852122/hex-transparency-in-colors – Akarsh M Dec 15 '15 at 05:29
-
@user3731565 you ccan check the answer http://stackoverflow.com/a/34281868/1140237 – user1140237 Dec 15 '15 at 06:07
2 Answers
1
Set semi transparent or fully transparent color to your layout(menu layout) background. Below I have mentioned color code with transparency level
Black - "#000000"
100% Transparent"#00000000"
100% Opaque "#FF000000"
50% Transparent "#80000000"
(This one you can use in your case)
For more details regarding Android color code you can check https://stackoverflow.com/a/17239853/1140237

Community
- 1
- 1

user1140237
- 5,015
- 1
- 28
- 56
0
use this code
<style name="MyTheme" parent="android:Theme">
<item name="android:panelFullBackground">{your color or drawable}</item>
</style>

Akhil Jayakumar
- 2,262
- 14
- 25